private void Awake() { removalProcessor = GetComponent <IRemovalProcessor>(); timer = new DownTimer(0f); timer.DisableTimer(); ((DownTimer)timer).OnTimerEnd += removalProcessor.Remove; }
public void SaveTimeSlots(IEnumerable <PowerTimeSlot> timeSlotsToSave) { _timer.DisableTimer(); _timeSlotStore.SaveTimeSlots(timeSlotsToSave); CheckTimeSlots(); _timer.EnableTimer(); }
private void OnDisable() { timer.DisableTimer(); }