protected virtual void OnDisable()
        {
            isDestroying = true;

            if (attachedToHand != null)
            {
                attachedToHand.ForceHoverUnlock();
            }
        }
示例#2
0
 protected override void OnDestroy()
 {
     base.OnDestroy();
     if (attachedToHand != null)
     {
         attachedToHand.ForceHoverUnlock();
         attachedToHand.DetachObject(this.gameObject, false);
     }
 }
示例#3
0
        protected virtual void OnDestroy()
        {
            isDestroying = true;

            if (attachedToHand != null)
            {
                attachedToHand.ForceHoverUnlock();
                attachedToHand.DetachObject(this.gameObject, false);
            }
        }
示例#4
0
        protected virtual void OnDisable()
        {
            isDestroying = true;

            if (attachedToHand != null)
            {
                attachedToHand.ForceHoverUnlock();
            }

            allHighlightHolderRefernences.ForEach(highLighter => Destroy(highLighter));
            allHighlightHolderRefernences.Clear();
        }