示例#1
0
    void Start()
    {
        musicManager = GameObject.FindObjectOfType <MusicManager>();

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