public void AddSelectableUnit(Unit unit) { if (unit.GetComponent<Unit>() != null) { selectableUnits.Add(unit); } }
private void AddUnitToSelection(Unit unit) { if (selectableUnits.Contains(unit) && !selectedUnits.Contains(unit)) { selectedUnits.Add(unit); unit.GetComponent<Unit>().Select(); } }