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(); }