Onto lesson 2
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user