// Use this for initialization void Start() { musicMangager = GameObject.FindObjectOfType <MusicManager>(); volumeSlider.value = GlitchPlayerPrefs.GetMasterVolume(); difficultySlider.value = GlitchPlayerPrefs.GetDifficulty(); }
// Use this for initialization void Start() { musicManager = GameObject.FindObjectOfType <MusicManager>(); if (musicManager) { musicManager.ChangeVolume(GlitchPlayerPrefs.GetMasterVolume()); } else { Debug.LogWarning("No music manager!"); } }