コード例 #1
0
 private void AddSelectedUnit()
 {
     foreach (UnitController unitController in unitsControllerList)
     {
         if (_unitSelection.IsWithinSelectionBounds(unitController.gameObject))
         {
             selectedUnits.Add(unitController);
             Debug.Log("Selected: " + unitController.name);
             unitController.unitStatus.Selected = true;
         }
     }
 }