/// <summary> /// 释放 /// </summary> public virtual void OnDistanceRelesae(DistanceInteraction distanceInteraction) { if (ActiveParent && interactionParent != null) { interactionParent.OnOpen(this, distanceInteraction); } if (ActiveShadow && interactionShadow != null) { if (AutoDetection) { if (!HasDeteced) { HasDeteced = true; } else { interactionShadow.OnClose(this, distanceInteraction); } } else { interactionShadow.OnClose(this, distanceInteraction); } } if (OnRelease != null) { OnRelease.Invoke(distanceInteraction); } }
/// <summary> /// 释放 /// </summary> public virtual void OnDistanceRelesae(DistanceInteraction distanceInteraction) { if (ActiveParent && interactionParent != null) { interactionParent.OnOpen(this, distanceInteraction); } if (ActiveShadow && interactionShadow != null) { interactionShadow.OnClose(this, distanceInteraction); } if (OnRelease != null) { OnRelease.Invoke(distanceInteraction); } }