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

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

            _timeSlotStore.SaveTimeSlots(timeSlotsToSave);
            CheckTimeSlots();

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