public override void OnTriggerExit(InteractiveObjectPhysicsTriggerInfo PhysicsTriggerInfo) { if (OnTriggerExitAction != null) { OnTriggerExitAction.Invoke(PhysicsTriggerInfo.OtherInteractiveObject); } }
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); } } } }
////// FIXED UPDATE /////// public virtual void OnTriggerEnter(InteractiveObjectPhysicsTriggerInfo PhysicsTriggerInfo) { }
public override bool ColliderSelectionGuard(InteractiveObjectPhysicsTriggerInfo interactiveObjectPhysicsTriggerInfo) { return(InteractiveObjectSelectionGuard.Invoke(interactiveObjectPhysicsTriggerInfo)); }
public virtual bool ColliderSelectionGuard(InteractiveObjectPhysicsTriggerInfo interactiveObjectPhysicsTriggerInfo) { return(true); }