public void ToggleMusic() { if (MusicOn) { MusicOn = false; } else { MusicOn = true; } playerData.MusicOnBool = MusicOn.ToString(); }
public void saveTempSettings() { PlayerPrefs.SetString("MusicOn", MusicOn.ToString()); PlayerPrefs.SetString("SFXOn", SfxOn.ToString()); print("SAVED: MUSIC = " + MusicOn.ToString() + " SFX = " + SfxOn.ToString()); }