Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public abstract class Command
  2. {
  3. public abstract void execute();
  4. }
  5.  
  6. public class RunCommand : Command
  7. {
  8. public override void execute()
  9. {
  10. //Do Run
  11. }
  12. }
  13.  
  14. public class JumpCommand : Command
  15. {
  16. public override void execute()
  17. {
  18. //Do Jump
  19. }
  20. }
  21.  
  22. public class AttackCommand : Command
  23. {
  24. public override void execute()
  25. {
  26. //Do Attack
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement