Exemple #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.UpArrow))
     {
         Set_extended_hand();
         hand_extend.Extend(2f);
     }
     if ((controller.GetHairTriggerDown() || Input.GetKeyDown(KeyCode.Space)) && hand_extend.is_extend)
     {
         StopCoroutine("Extend_to_front");
         player_controller.Move();
     }
     if (controller.GetPress(SteamVR_Controller.ButtonMask.Touchpad))
     {
         third_camera.Change_Camera_angle(controller.GetAxis());
     }
     InputTracking.GetLocalPosition(VRNode.LeftHand);
 }