Exemple #1
0
        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);
        }
Exemple #2
0
 public void OnRestart()
 {
     Squads.Clear();
 }
Exemple #3
0
 void ISquadRepository.Clear() => Squads.Clear();