private async void HandleUnitMouseDown(IUnit[] units) { Hide(); await _unitActionPlanner.PlanBatchedAction(units, UnitAction.DragAndDrop); _unitSelectionHighlighter.ClearHighlights(); _selectedUnits = null; }
private async void OnMouseDown(IUnit[] units) { // Input lock is handled by the VC since it owns other sub VCs, etc.. // Ideally, we would lock here and await for the root menu to be closed. _unitSelectionHighlighter.HighlightUnits(new[] { units[0] }); // TODO: This currently only awaits for menu to be open. Should create "ShowAndWaitForAction" await _unitMenuViewController.Show(units[0]); _unitSelectionHighlighter.ClearHighlights(); }