private void OnTriggerExit(Collider other)
 {
     OnTriggerExitHandler?.Invoke(other);
     if (_cacheCollisions)
     {
         _colliders.Remove(other);
     }
 }
 private void OnTriggerEnter(Collider other)
 {
     OnTriggerEnterHandler?.Invoke(other);
     if (_cacheCollisions)
     {
         _colliders.Add(other);
     }
 }
 private void OnTriggerStay(Collider other)
 {
     OnTriggerStayHandler?.Invoke(other);
 }
Ejemplo n.º 4
0
 private void OnTriggerEnter(Collider other)
 {
     OnColliderEvent?.Invoke(other);
 }