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