public void Execute()
 {   // take the receiver method of Super state change
     if (Sprint5Main.Coins >= 50 && Mario.GetPower == MarioState.PowerType.Standard)
     {
         Mario.MoveSuper();
         Sprint5Main.Coins -= 50;
         SoundFactory.Instance.PowerUp();
     }
 }
Beispiel #2
0
 public void Execute()
 {   // take the receiver method of power state change
     mario.MoveSuper();
 }