public void addToListeners(DeathListener listener, Aggressive A) { Dead += listener; if (!_deathListeningUnits.Exists((Aggressive obj) => obj == A)) { _deathListeningUnits.Add(A); } }
public void RemoveFromListeners(DeathListener listener, Aggressive A) { Dead -= listener; _deathListeningUnits.Remove(A); }