Esempio n. 1
0
        void OnDestroy()
        {
            if (entity != null)
            {
                entity.OnShapeUpdated -= SetEventColliders;
            }

            pointerEventHandler.Dispose();
        }
Esempio n. 2
0
 void OnDestroy()
 {
     CommonScriptableObjects.playerInfoCardVisibleState.OnChange -= ReEnableOnInfoCardClosed;
     eventHandler?.Dispose();
     CollidersManager.i.RemoveEntityCollider(entity, collider);
 }
Esempio n. 3
0
 public void OnPoolRelease()
 {
     eventHandler.Dispose();
 }