protected virtual void OnDisable()
        {
            isDestroying = true;

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

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

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

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