public void Reset() { ManaClock.Start(); UseManaTimer.Stop(); ManaFullClock.Stop(); CurrentMP = 0f; }
public void UseMana(float mana) { //is the player already taking damage? if (!UseManaTimer.HasTimeRemaining) { PreUseManaAmount = CurrentMP; } //start the damage timer UseManaTimer.Start(InUseTimeDelta); }
public override void Update(GameClock time) { base.Update(time); //update all timers ManaClock.Update(time); UseManaTimer.Update(time); ManaFullClock.Update(time); UpdateManaFull(); }