public void SaveTimeSlots(IEnumerable <PowerTimeSlot> timeSlotsToSave) { _timer.DisableTimer(); _timeSlotStore.SaveTimeSlots(timeSlotsToSave); CheckTimeSlots(); _timer.EnableTimer(); }
private void InitTimer() { timer = new DownTimer(delayBetweenDamage); ((DownTimer)timer).OnTimerEnd += () => { // TODO: change to use Element.Empty once implemented damageable.TakeDamage(damagePerTick, null, gameObject); timer.Reset(); }; timer.EnableTimer(); }
public void Remove(float seconds) { ((DownTimer)timer).SetNewTime(seconds); timer.EnableTimer(); }
private void OnEnable() { timer.Reset(); timer.EnableTimer(); }