Пример #1
0
 public void addToListeners(DeathListener listener, Aggressive A)
 {
     Dead += listener;
     if (!_deathListeningUnits.Exists((Aggressive obj) => obj == A))
     {
         _deathListeningUnits.Add(A);
     }
 }
Пример #2
0
 public void RemoveFromListeners(DeathListener listener, Aggressive A)
 {
     Dead -= listener;
     _deathListeningUnits.Remove(A);
 }