protected virtual void Detach() { if (AttachedPoint) { AttachedPoint.Detached(this); } AttachedItem = null; AttachedPoint = null; IsTryingToAttach = false; TryingToAttachItem = null; }
protected virtual void Detach() { OnDetach(AttachedPoint); AttachedPoint.Detached(this); if (SetKinematicWhenAttached) { AttachedItem.Rigidbody.isKinematic = _itemKinematicStatePreAttach; } // AttachedItem.EndInteraction(); AttachedItem = null; AttachedPoint = null; }
protected virtual void Detach() { AttachedPoint.Detached(this); AttachedItem = null; AttachedPoint = null; }