void OnTriggerExit(Collider other)
 {
     if (other.name.Split('_')[0] == "MenuPointer")
     {
         OnTriggerExitEvent?.Invoke(this, EventArgs.Empty);
     }
 }
 void OnTriggerExit(Collider collider)
 {
     if (OnTriggerExitEvent != null)
     {
         OnTriggerExitEvent.Invoke(collider);
     }
 }
Beispiel #3
0
 void OnTriggerExit(Collider other)
 {
     if (other.name.Split('_')[0] == "MenuPointer")
     {
         _ButtonExecuted         = false;
         transform.localPosition = _OriginalLocalPosition;
         OnTriggerExitEvent?.Invoke(this, new ButtonXRTriggerEvent(other));
     }
 }
Beispiel #4
0
        private void OnTriggerExit(Collider other)
        {
            var colInfo = new TreeCollider.CollisionInfo
            {
                collidedWith   = other.gameObject,
                collisionState = TreeCollider.CollisionInfo.CollisionState.stay,
                isTrigger      = true,
                otherCollider  = other,
                sender         = gameObject
            };

            onTriggerExit?.Invoke(colInfo);
            OnTriggerExitEvent?.Invoke(colInfo);
        }
Beispiel #5
0
    private void OnTriggerExit2D(Collider2D otherCol)
    {
        GameObject aGameObject = otherCol.gameObject;

        // if not registered
        if (!itsOverlappingGameObjects.Contains(aGameObject))
        {
            return;
        }

        // track it!
        itsOverlappingGameObjects.Remove(aGameObject);
        if (OnTriggerExitEvent != null)
        {
            OnTriggerExitEvent.Invoke(aGameObject);
        }
    }
Beispiel #6
0
 public void OnTriggerExit2D(Collider2D col)
 {
     OnTriggerExitEvent?.Invoke(col);
 }
Beispiel #7
0
 private void OnTriggerExit(Collider other) => OnTriggerExitEvent?.Invoke(other);
Beispiel #8
0
 private void OnTriggerExit(Collider other)
 {
     OnTriggerExitEvent.Invoke();
 }
Beispiel #9
0
 void OnTriggerExit(Collider other)
 {
     OnTriggerExitEvent?.Invoke(other);
 }
 private void OnTriggerExit(Collider other)
 {
     OnTriggerExitEvent?.Invoke(gameObject, other.gameObject);
 }