示例#1
0
 public override void OnTriggerExit(InteractiveObjectPhysicsTriggerInfo PhysicsTriggerInfo)
 {
     if (OnTriggerExitAction != null)
     {
         OnTriggerExitAction.Invoke(PhysicsTriggerInfo.OtherInteractiveObject);
     }
 }
示例#2
0
 public void OnTriggerExit(Collider other)
 {
     InteractiveObjectV2Manager.Get().InteractiveObjectsIndexedByLogicCollider.TryGetValue(other, out CoreInteractiveObject OtherInteractiveObject);
     if (OtherInteractiveObject != null && ((this.AssociatedInteractiveObject != null && OtherInteractiveObject != this.AssociatedInteractiveObject) || this.AssociatedInteractiveObject == null))
     {
         this.CurrentlyTrackedColliders.Remove(other);
         var RangeObjectPhysicsTriggerInfo = new InteractiveObjectPhysicsTriggerInfo {
             Other = other, OtherInteractiveObject = OtherInteractiveObject
         };
         for (var i = 0; i < this.PhysicsEventListeners.Count; i++)
         {
             if (this.PhysicsEventListeners[i].ColliderSelectionGuard(RangeObjectPhysicsTriggerInfo))
             {
                 this.PhysicsEventListeners[i].OnTriggerExit(RangeObjectPhysicsTriggerInfo);
             }
         }
     }
 }
示例#3
0
 ////// FIXED UPDATE ///////
 public virtual void OnTriggerEnter(InteractiveObjectPhysicsTriggerInfo PhysicsTriggerInfo)
 {
 }
示例#4
0
 public override bool ColliderSelectionGuard(InteractiveObjectPhysicsTriggerInfo interactiveObjectPhysicsTriggerInfo)
 {
     return(InteractiveObjectSelectionGuard.Invoke(interactiveObjectPhysicsTriggerInfo));
 }
示例#5
0
 public virtual bool ColliderSelectionGuard(InteractiveObjectPhysicsTriggerInfo interactiveObjectPhysicsTriggerInfo)
 {
     return(true);
 }