Пример #1
0
        private void Awake()
        {
            removalProcessor = GetComponent <IRemovalProcessor>();

            timer = new DownTimer(0f);
            timer.DisableTimer();
            ((DownTimer)timer).OnTimerEnd += removalProcessor.Remove;
        }
Пример #2
0
        public void SaveTimeSlots(IEnumerable <PowerTimeSlot> timeSlotsToSave)
        {
            _timer.DisableTimer();

            _timeSlotStore.SaveTimeSlots(timeSlotsToSave);
            CheckTimeSlots();

            _timer.EnableTimer();
        }
Пример #3
0
 private void OnDisable()
 {
     timer.DisableTimer();
 }