コード例 #1
0
 public void DettachHand(CustomHand hand)
 {
     hand.DetachHand();
     if (hand.handType == SteamVR_Input_Sources.LeftHand)
     {
         leftMyGrabPoser = null;
         leftHand        = null;
     }
     if (hand.handType == SteamVR_Input_Sources.RightHand)
     {
         rightMyGrabPoser = null;
         rightHand        = null;
     }
 }
コード例 #2
0
 public void DettachHands()
 {
     if (leftHand)
     {
         leftHand.DetachHand();
         leftMyGrabPoser = null;
         leftHand        = null;
     }
     if (rightHand)
     {
         rightHand.DetachHand();
         rightMyGrabPoser = null;
         rightHand        = null;
     }
 }