예제 #1
0
 private void DuplicateObjectStateHandler()
 {
     // Base hand releases the grasped object while in the proxy
     if (!Player.Instance.GetInteractionHand(HandChirality).isGraspingObject)
     {
         // Destroy the object that was grasped by the base hand and keep the duplicate
         markHandObject.GetComponent <Rigidbody>().isKinematic = false;
         //markHandObject.GetComponent<HighlightController>().enabled = true;
         markHandObject = null;
         baseHandObject.Destroy();
         baseHandObject = null;
         ownership      = Ownership.None;
         ChangeState(MarkHandState.Idle);
     }
     if (!isEnabled)
     {
         ChangeState(MarkHandState.Deactivating);
     }
 }