void Start() { volumeSlider.value = PlayPrefsController.GetMasterVolume(); difficultySlider.value = PlayPrefsController.GetDifficulty(); }
// Start is called before the first frame update void Start() { DontDestroyOnLoad(this); audioSource = GetComponent <AudioSource>(); audioSource.volume = PlayPrefsController.GetMasterVolume(); }