protected virtual void OnDisable() { isDestroying = true; if (attachedToHand != null) { attachedToHand.ForceHoverUnlock(); } }
protected override void OnDestroy() { base.OnDestroy(); if (attachedToHand != null) { attachedToHand.ForceHoverUnlock(); attachedToHand.DetachObject(this.gameObject, false); } }
protected virtual void OnDestroy() { isDestroying = true; if (attachedToHand != null) { attachedToHand.ForceHoverUnlock(); attachedToHand.DetachObject(this.gameObject, false); } }
protected virtual void OnDisable() { isDestroying = true; if (attachedToHand != null) { attachedToHand.ForceHoverUnlock(); } allHighlightHolderRefernences.ForEach(highLighter => Destroy(highLighter)); allHighlightHolderRefernences.Clear(); }