public UnitSelectionDetector(UnitMenuViewController unitMenuViewController, UnitSelectionHighlighter unitSelectionHighlighter, IUnitMovementController unitMovementController, IInputLock inputLock, IGridUnitInputManager gridUnitInputManager) { _unitMenuViewController = unitMenuViewController; _unitSelectionHighlighter = unitSelectionHighlighter; _unitMovementController = unitMovementController; _inputLock = inputLock; _gridUnitInputManager = gridUnitInputManager; _disposables = new List <IDisposable>(); }
public void Construct(Camera camera, UnitSelectionHighlighter unitSelectionHighlighter, ICommandQueue commandQueue, IUnitActionPlanner unitActionPlanner, IGridUnitManager gridUnitManager, IGridUnitInputManager gridUnitInputManager, IGridPositionCalculator gridPositionCalculator, ILogger logger) { _camera = camera; _commandQueue = commandQueue; _unitSelectionHighlighter = unitSelectionHighlighter; _unitActionPlanner = unitActionPlanner; _gridUnitManager = gridUnitManager; _gridUnitInputManager = gridUnitInputManager; _gridPositionCalculator = gridPositionCalculator; _logger = logger; // TODO: Be better _radialMenu = GetComponent <IRadialMenu>(); }