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(); } }
public void Execute() { receiver.SmallMario(); }