Ejemplo n.º 1
0
 public override void Update(GameTime gameTime)
 {
     if (!Hidden)
     {
         healthTimer?.Update(gameTime);
         //Got hurt - go into rage mode (if we are not already in rage mode)
         if (currentHealth < maxHealth)
         {
             if (currentStrategy.GetType() != typeof(RageStrategy))
             {
                 currentStrategy = new RageStrategy();
             }
         }
         if (attacking)
         {
             MoveableBodyState = MoveableBodyStates.Attacking;
         }
         //Debug.WriteLine(gameTime.TotalGameTime.ToString() + " " + MoveableBodyState);
         base.Update(gameTime);
     }
 }