public override void UnSubscribeToDetachmentEvent(Space targetContainer, GODelegate del) { targetContainer.PlaceDetached -= lambdas[del]; lambdas.Remove(del); }
public abstract void SubscribeToDetachmentEvent(T targetContainer, GODelegate del);
public override void SubscribeToDetachmentEvent(Space targetContainer, GODelegate del) { Space.PlaceDelegate l = place => del(place.gameObject); lambdas.Add(del, l); targetContainer.PlaceDetached += l; }