I have two methods to switch between accelerometer and touch controller type. But it doesn't save the preferences. Help?

```
public void InputChoiceFalse()
{
    if (PlayerPrefs.HasKey("playerChoice"))
    {
        PlayerPrefs.SetInt("playerChoice", playerChoice ? 0:1);
        playerChoice = false;
        Debug.Log("false "+playerChoice);
        value = 0;
        PlayerPrefs.Save();
    }

}

public void InputChoiceTrue()
{
    if (PlayerPrefs.HasKey("playerChoice"))
    {
        PlayerPrefs.SetInt("playerChoice", playerChoice ? 0 : 1);
        playerChoice = true;
        Debug.Log("true "+playerChoice);
        value = 1;
        PlayerPrefs.Save();
    }
}

```