void Start() { if (PlayerPrefs.GetInt ("Sound") == 1) { t.isOn = true; } else { t.isOn = false; PlayerPrefs.SetInt ("Sound", 0); } }