private void SelectUnit(Unit iUnit) { SelectedUnits.Add(iUnit.gameObject); iUnit.Select(); UpdateSelectedUnits(); BuildAction buildAction = SelectedUnits[0].GetComponent <BuildAction>(); if (buildAction) { UserInterface.Instance.LoadBuildingMenu(); } }
public void AddUnitToSelection(UnitSelection unitSelection) { unitSelection.Select(); SelectedUnits.Add(unitSelection); }