public void OnClickToggle() { if (t.isOn) { PlayerPrefs.SetInt ("Sound", 1); } else { PlayerPrefs.SetInt ("Sound", 0); print (PlayerPrefs.GetInt ("Sound")); } }