Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class Command
- {
- public abstract void execute();
- }
- public class RunCommand : Command
- {
- public override void execute()
- {
- //Do Run
- }
- }
- public class JumpCommand : Command
- {
- public override void execute()
- {
- //Do Jump
- }
- }
- public class AttackCommand : Command
- {
- public override void execute()
- {
- //Do Attack
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement