Exemple #1
0
 public InputManager()
 {
     moveUp        = new MoveUpCommand();
     moveDown      = new MoveDownCommand();
     moveRight     = new MoveRightCommand();
     moveLeft      = new MoveLeftCommand();
     stopMoveUp    = new StopMoveUpCommand();
     stopMoveLeft  = new StopMoveLeftCommand();
     stopMoveRight = new StopMoveRightCommand();
     stopMoveDown  = new StopMoveDownCommand();
     attack        = new AttackCommand();
     rangedAttack  = new RangedAttackCommand();
 }
Exemple #2
0
 public InputManager(GameObject player)
 {
     this.player   = player;
     moveUp        = new MoveUpCommand();
     moveDown      = new MoveDownCommand();
     moveRight     = new MoveRightCommand();
     moveLeft      = new MoveLeftCommand();
     stopMoveUp    = new StopMoveUpCommand();
     stopMoveLeft  = new StopMoveLeftCommand();
     stopMoveRight = new StopMoveRightCommand();
     stopMoveDown  = new StopMoveDownCommand();
     attack        = new AttackCommand();
     rangedAttack  = new RangedAttackCommand();
 }