public void OnStart() { Squads.Clear(); Action <IUnit> removeDead = u => { for (int i = 0; i < Squads.Count; i++) { Squads[i].RemoveUnit(u); } }; intelManager.Handler.RegisterHandler(Case.UnitDestroyed, removeDead); intelManager.Handler.RegisterHandler(Case.StructureDestroyed, removeDead); }
public void OnRestart() { Squads.Clear(); }
void ISquadRepository.Clear() => Squads.Clear();