Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 3
0
    private void OnTriggerExit(Collider other)
    {
        BaseTrigger trigger = other.gameObject.GetComponent <BaseTrigger>();

        if (trigger != null)
        {
            TriggerExitEvent.Invoke(trigger);
        }
    }
Exemplo n.º 4
0
 void OnTriggerExit(Collider other)
 {
     if (other.name.Split('_')[0] == "MenuPointer")
     {
         _ButtonExecuted         = false;
         transform.localPosition = _OriginalLocalPosition;
         OnTriggerExitEvent?.Invoke(this, new ButtonXRTriggerEvent(other));
     }
 }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
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);
        }
    }
Exemplo n.º 7
0
 public void OnTriggerExit2D(Collider2D col)
 {
     OnTriggerExitEvent?.Invoke(col);
 }
Exemplo n.º 8
0
 private void OnTriggerExit(Collider other) => OnTriggerExitEvent?.Invoke(other);
Exemplo n.º 9
0
 private void OnTriggerExit(Collider other)
 {
     OnTriggerExitEvent.Invoke();
 }
Exemplo n.º 10
0
 void OnTriggerExit(Collider other)
 {
     OnTriggerExitEvent?.Invoke(other);
 }
Exemplo n.º 11
0
 private void OnTriggerExit(Collider other)
 {
     TriggerExit.Invoke(other.gameObject);
 }
Exemplo n.º 12
0
 void OnTriggerExit(Collider other)
 {
     onTrigger.Invoke(gameObject, other);
 }
 private void OnTriggerExit(Collider other)
 {
     OnTriggerExitEvent?.Invoke(gameObject, other.gameObject);
 }