コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
        /// <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);
            }
        }