Exemplo n.º 1
0
 void Start()
 {
     musicOn = PlayerPrefs.GetInt("Music") > 0;
     soundOn = PlayerPrefs.GetInt("Sound") > 0;
     SetSoundIcon();
     SetMusicIcon();
     settingsMenu.SetActive(false);
     if (levelSelect != null)
     {
         levelSelect.ChangeSoundState(soundOn);
     }
 }