void OnDestroy() { if (entity != null) { entity.OnShapeUpdated -= SetEventColliders; } pointerEventHandler.Dispose(); }
void OnDestroy() { CommonScriptableObjects.playerInfoCardVisibleState.OnChange -= ReEnableOnInfoCardClosed; eventHandler?.Dispose(); CollidersManager.i.RemoveEntityCollider(entity, collider); }
public void OnPoolRelease() { eventHandler.Dispose(); }