public void SetValues()
    {
        _musicSlider.value     = _musicVolume;
        _interfaceSlider.value = _interfaceVolume;
        _effectSlider.value    = _effectsVolume;

        _audioManager.mainMixer.SetFloat("MusicVolume", AudioExtension.LinearToDecibel(_musicVolume));
        _audioManager.mainMixer.SetFloat("InterfaceVolume", AudioExtension.LinearToDecibel(_interfaceVolume));
        _audioManager.mainMixer.SetFloat("SoundVolume", AudioExtension.LinearToDecibel(_effectsVolume));
    }
 public void EffectSliderChanged()
 {
     _effectsVolume = _effectSlider.value;
     _audioManager.mainMixer.SetFloat("SoundVolume", AudioExtension.LinearToDecibel(_effectsVolume));
 }
 public void InterfaceSliderChanged()
 {
     _interfaceVolume = _interfaceSlider.value;
     _audioManager.mainMixer.SetFloat("InterfaceVolume", AudioExtension.LinearToDecibel(_interfaceVolume));
 }
 public void MusicSliderChanged()
 {
     _musicVolume = _musicSlider.value;
     _audioManager.mainMixer.SetFloat("MusicVolume", AudioExtension.LinearToDecibel(_musicVolume));
 }