コード例 #1
0
        private void OnDisable()
        {
            //Save the players options from the items

            PlayerPrefsManager.MasterVolume = MasterVolumeSlider.value;
            PlayerPrefsManager.SFXVolume    = SFXVolumeSlider.value;
            PlayerPrefsManager.MusicVolume  = MusicVolumeSlider.value;

            MasterVolumeSlider.onValueChanged.RemoveListener(audioLoader.UpdateMaster);
            SFXVolumeSlider.onValueChanged.RemoveListener(audioLoader.UpdateSFX);
            MusicVolumeSlider.onValueChanged.RemoveListener(audioLoader.UpdateMusic);

            audioLoader.UpdateValues();
        }