Ejemplo n.º 1
0
 public void SaveAndExit()
 {
     PlayPrefsController.SetMasterVolume(volumeSlider.value);
     PlayPrefsController.SetDifficulty(difficultySlider.value);
     FindObjectOfType <LevelLoader>().LoadMainMenu();
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     DontDestroyOnLoad(this);
     audioSource        = GetComponent <AudioSource>();
     audioSource.volume = PlayPrefsController.GetMasterVolume();
 }
Ejemplo n.º 3
0
 void Start()
 {
     volumeSlider.value     = PlayPrefsController.GetMasterVolume();
     difficultySlider.value = PlayPrefsController.GetDifficulty();
 }
Ejemplo n.º 4
0
 void Start()
 {
     stars    = baseStars - (500 * PlayPrefsController.GetDifficulty());
     starText = GetComponent <Text>();
     UpdateDisplay();
 }