public void Reset() { ManaClock.Start(); UseManaTimer.Stop(); ManaFullClock.Stop(); CurrentMP = 0f; }
public override void Update(GameClock time) { base.Update(time); //update all timers ManaClock.Update(time); UseManaTimer.Update(time); ManaFullClock.Update(time); UpdateManaFull(); }
private void UpdateManaFull() { //check if we need to change "full energy" mode if (ManaFullClock.Paused && IsFullManaMode) { ManaFullClock.Start(); } else if (!ManaFullClock.Paused && !IsFullManaMode) { ManaFullClock.Stop(); } }