private float _prevTime; // previous time

        void Awake()
        {
            _instance      = this;
            _currentPreset = 2;
            SetTimeOfDay(_presets[_currentPreset], true);
            _prevTime = time;
        }
Beispiel #2
0
        private void SelectTime(InputAction.CallbackContext context)
        {
            var value = context.ReadValue <float>();

            Debug.Log($"changing day time, input:{value}");
            DayNightController.SelectPreset(value);
        }