示例#1
0
        private void SelectUnit(Unit iUnit)
        {
            SelectedUnits.Add(iUnit.gameObject);
            iUnit.Select();
            UpdateSelectedUnits();
            BuildAction buildAction = SelectedUnits[0].GetComponent <BuildAction>();

            if (buildAction)
            {
                UserInterface.Instance.LoadBuildingMenu();
            }
        }
示例#2
0
 public void AddUnitToSelection(UnitSelection unitSelection)
 {
     unitSelection.Select();
     SelectedUnits.Add(unitSelection);
 }