Exemplo n.º 1
0
        protected virtual void Detach()
        {
            if (AttachedPoint)
            {
                AttachedPoint.Detached(this);
            }

            AttachedItem       = null;
            AttachedPoint      = null;
            IsTryingToAttach   = false;
            TryingToAttachItem = null;
        }
Exemplo n.º 2
0
        protected virtual void Detach()
        {
            OnDetach(AttachedPoint);
            AttachedPoint.Detached(this);

            if (SetKinematicWhenAttached)
            {
                AttachedItem.Rigidbody.isKinematic = _itemKinematicStatePreAttach;
            }
            // AttachedItem.EndInteraction();

            AttachedItem  = null;
            AttachedPoint = null;
        }
Exemplo n.º 3
0
 protected virtual void Detach()
 {
     AttachedPoint.Detached(this);
     AttachedItem  = null;
     AttachedPoint = null;
 }