Onto lesson 2

This commit is contained in:
2026-03-19 17:31:51 +00:00
parent f19100a166
commit 539ffe3cd0
1204 changed files with 143736 additions and 77 deletions

View File

@@ -92,6 +92,16 @@ public class UnitSelection : MonoBehaviour
}
}
//returns whether or not we're selecting a unit or units
public bool HasUnitSelected()
{
return selectedUnits.Count > 0 ? true : false;
}
//return the selected units
public Unit[] GetSelectedUnits()
{
return selectedUnits.ToArray();
}
void ToggleSelectionVisual(bool selected)
{