private void InitializePlayerControls(PlayerControlConfig playerControlConfig) { _downKey = playerControlConfig.DownKey; _leftKey = playerControlConfig.LeftKey; _rightKey = playerControlConfig.RightKey; _rotateClockwiseKey = playerControlConfig.RotateClockwiseKey; _rotateCounterClockwiseKey = playerControlConfig.RotateCounterClockwiseKey; }
public PlayerInputController(Board board, PlayerControlConfig playerControlConfig) { _board = board; InitializePlayerControls(playerControlConfig); }