Exemple #1
0
 public void Reset()
 {
     ManaClock.Start();
     UseManaTimer.Stop();
     ManaFullClock.Stop();
     CurrentMP = 0f;
 }
Exemple #2
0
        public override void Update(GameClock time)
        {
            base.Update(time);

            //update all timers
            ManaClock.Update(time);
            UseManaTimer.Update(time);
            ManaFullClock.Update(time);

            UpdateManaFull();
        }
Exemple #3
0
 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();
     }
 }