| | 1 | | using DCL.SettingsCommon.SettingsControllers.BaseControllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers |
| | 5 | | { |
| | 6 | | [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Avatar SFX Volume", fileName = "AvatarSFXVolumeControlCon |
| | 7 | | public class AvatarSFXVolumeControlController : SliderSettingsControlController |
| | 8 | | { |
| 2 | 9 | | public override object GetStoredValue() { return currentAudioSettings.avatarSFXVolume * 100; } |
| | 10 | |
|
| | 11 | | public override void UpdateSetting(object newValue) { |
| 2 | 12 | | currentAudioSettings.avatarSFXVolume = (float)newValue * 0.01f; |
| 2 | 13 | | Settings.i.ApplyAvatarSFXVolume(); |
| 2 | 14 | | } |
| | 15 | | } |
| | 16 | | } |