Beispiel #1
0
 public virtual void Attack()
 {
     Sounds.GetAttackSound().Play();
     if (MaxHearts - CurrentHearts < 0.01) // close enough to 0 for a double
     {
         UseProjectile(new SwordProjectile(this.Direction, this.X, this.Y));
     }
     State.Attack();
 }