Esempio n. 1
0
        private void Awake()
        {
            removalProcessor = GetComponent <IRemovalProcessor>();

            timer = new DownTimer(0f);
            timer.DisableTimer();
            ((DownTimer)timer).OnTimerEnd += removalProcessor.Remove;
        }
Esempio n. 2
0
        public void SaveTimeSlots(IEnumerable <PowerTimeSlot> timeSlotsToSave)
        {
            _timer.DisableTimer();

            _timeSlotStore.SaveTimeSlots(timeSlotsToSave);
            CheckTimeSlots();

            _timer.EnableTimer();
        }
Esempio n. 3
0
 private void OnDisable()
 {
     timer.DisableTimer();
 }