示例#1
0
 /// <summary>
 /// Enables selection circles for any selected units or spawners.
 /// </summary>
 private void HighlightSelection()
 {
     if (selectedUnits.Count > 0)
     {
         actionPanel.SetUnitPanelButtons();
         foreach (Unit unit in selectedUnits)
         {
             unit.SetSelectionCircle(true);
         }
     }
     else if (selectedSpawners.Count > 0)
     {
         actionPanel.SetSpawnerPanelButtons();
         foreach (UnitSpawner spawner in selectedSpawners)
         {
             spawner.SetSelectionCircle(true);
         }
     }
 }