Example #1
0
 public Controller(Charactor charactor)
 {
     _goToLeft  = new GoToLeftCommand(charactor);
     _goToRight = new GoToRightCommand(charactor);
     _jump      = new JumpCommand(charactor);
 }
Example #2
0
 public GoToRightCommand(Charactor charater)
 {
     _charactor = charater;
 }
Example #3
0
 public GoToLeftCommand(Charactor charater)
 {
     _charactor = charater;
 }
Example #4
0
 public JumpCommand(Charactor charater)
 {
     _charactor = charater;
 }