void Start() { musicManager = GameObject.FindObjectOfType <MusicManager>(); if (musicManager) { float volume = PlayerPrefsManeger.GetMasterVolume(); musicManager.SetVolume(volume); } }
void Start() { musicManager = GameObject.FindObjectOfType <MusicManager>(); volumeSlider.value = PlayerPrefsManeger.GetMasterVolume(); diffSlider.value = PlayerPrefsManeger.GetDifficulty(); }
public void SaveAndExit() { PlayerPrefsManeger.SetMasterVolume(volumeSlider.value); levelManager.LoadLevel("Start Menu"); PlayerPrefsManeger.SetDifficulty(diffSlider.value); }