void Update()
 {
     if (overwriteActiveWithInput)
     {
         active = controllerAction.GetState(player.leftHand.handType) ^ controllerAction.GetState(player.rightHand.handType);
         for (int handIndex = 0; handIndex < Player.instance.hands.Length; handIndex++)
         {
             Hand hand = Player.instance.hands[handIndex];
             if (hand != null)
             {
                 if (active)
                 {
                     hand.ShowController(true);
                     hand.SetSkeletonRangeOfMotion(Valve.VR.EVRSkeletalMotionRange.WithController);
                 }
                 else
                 {
                     hand.HideController(true);
                     hand.SetSkeletonRangeOfMotion(Valve.VR.EVRSkeletalMotionRange.WithoutController);
                 }
             }
         }
     }
 }