| | 1 | | using DCL.SettingsCommon.SettingsControllers.BaseControllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers |
| | 5 | | { |
| | 6 | | [CreateAssetMenu(menuName = "Settings/Controllers/Controls/FOV", fileName = "FOVControlController")] |
| | 7 | | public class FOVControlController : SliderSettingsControlController |
| | 8 | | { |
| 2 | 9 | | public override object GetStoredValue() { return currentGeneralSettings.firstPersonCameraFOV; } |
| | 10 | |
|
| | 11 | | public override void UpdateSetting(object newValue) |
| | 12 | | { |
| 2 | 13 | | currentGeneralSettings.firstPersonCameraFOV = (float)newValue; |
| | 14 | |
|
| 2 | 15 | | SceneReferences.i.firstPersonCamera.m_Lens.FieldOfView = currentGeneralSettings.firstPersonCameraFOV; |
| 2 | 16 | | } |
| | 17 | | } |
| | 18 | | } |