| | 1 | | using DCL.SettingsCommon.SettingsControllers.BaseControllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers |
| | 5 | | { |
| | 6 | | [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Chat SFX Toggle", fileName = "ChatSFXToggleControlControl |
| | 7 | | public class ChatSFXToggleControlController : ToggleSettingsControlController |
| | 8 | | { |
| 2 | 9 | | public override object GetStoredValue() { return currentAudioSettings.chatSFXEnabled; } |
| | 10 | |
|
| | 11 | | public override void UpdateSetting(object newValue) |
| | 12 | | { |
| 2 | 13 | | bool newBoolValue = (bool)newValue; |
| 2 | 14 | | currentAudioSettings.chatSFXEnabled = newBoolValue; |
| 2 | 15 | | } |
| | 16 | | } |
| | 17 | | } |