Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (PlayerPrefsController.CheckIfPrefsExist())
     {
         volumeSlider.value     = PlayerPrefsController.GetMasterVolume();
         difficultySlider.value = PlayerPrefsController.GetDifficulty();
     }
     else
     {
         volumeSlider.value     = defaultVolume;
         difficultySlider.value = defaultDifficulty;
     }
     musicPlayer = FindObjectOfType <MusicPlayer>();
 }