Beispiel #1
0
 public void Execute()
 {
     if (receiver.PowerState is SmallState)
     {
         //receiver.DeadMario();
         receiver.Die();
     }
     else if (receiver.PowerState is SuperState)
     {
         receiver.SmallMario();
     }
     else if (receiver.PowerState is FireState)
     {
         receiver.SmallMario();
     }
 }
Beispiel #2
0
 public void Execute()
 {
     receiver.SmallMario();
 }