Esempio n. 1
0
 public void W()
 {
     if (secondAbility.IsReady && !startedFalling && player.State != PlayerState.FALLING && player.Energy > wEnergy)
     {
         secondAbility.Reset();
         ballAttack     = new BallAttack(new Point(player.X + player.Rect.Width / 2, player.Y + player.Rect.Height / 2));
         player.Energy -= wEnergy;
     }
 }
 public void W()
 {
     if (secondAbility.IsReady && !startedFalling && player.State != PlayerState.FALLING && player.Energy > wEnergy)
     {
         secondAbility.Reset();
         ballAttack = new BallAttack(new Point(player.X + player.Rect.Width / 2, player.Y + player.Rect.Height / 2));
         player.Energy -= wEnergy;
     }
 }