// Use this for initialization void Start() { musicManager = GameObject.FindObjectOfType <MusicManager>(); volumeSlider.value = PlayerprefsManager.GetMasterVolume(); difficultySlider.value = PlayerprefsManager.GetDifficulty(); //levelManager = GameObject.FindObjectOfType<LevelManager>(); Debug.Log(musicManager); volumeSlider.value = PlayerprefsManager.GetMasterVolume(); }
void Start() { musicManager = GameObject.FindObjectOfType <MusicManager>(); volume = PlayerprefsManager.GetMasterVolume(); volumeSlider.value = volume; difficulty = PlayerprefsManager.GetDifficulty(); Debug.Log("Diff: " + difficulty.ToString()); diffSlider.value = difficulty; musicManager.SetVolume(volume); }