private void OnUnitAdded(object sender, UnitCreatedEventArgs e) { RegisterUnit(e.unit); }
private void OnUnitAdded(object sender, UnitCreatedEventArgs e) { RegisterUnit(e.unit.GetComponent <Unit>()); }