Example #1
0
 private void StateAliveUpdate(GameTime gameTime)
 {
     if (Health <= 0)
     {
         _timer = gameTime.TotalGameTime;
         _game.AddExplosion(_position);
         PlayerAnimation.Active = false;
         _stateDelegate         = StateDeadUpdate;
     }
     PlayerAnimation.Position = _position;
 }