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(); }
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(); }