Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (musicManage.GetMusicVolume() != volumeControl.value)
        {
            musicManage.SetMusicVolume(volumeControl.value);
            PlayerPrefsManage.SetMasterVolume(volumeControl.value);
        }

        if (musicManage.GetSoundFXVolume() != SoundFXCOntrol.value)
        {
            musicManage.SetSoundFXVolume(SoundFXCOntrol.value);
            PlayerPrefsManage.SetSoundFXVolume(SoundFXCOntrol.value);
        }
    }