Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }