Exemple #1
0
 public void ShootFireball()
 {
     if (CurrentState != MarioStates.Dead && marioHasFire)
     {
         CurrentState = MarioStates.shootingFireball;
         CurrentSprite = new Sprites.MarioFireBallingSprite();
         Fireball fireball = new Fireball(myMario.xPosition, myMario.yPosition, camera);
         fireball.shoot();
     }
 }