コード例 #1
0
 void Update()
 {
     if (resetSceneButtonEnabled && OculusTouchInput.GetRightAPress())
     {
         Debug.Log("---- reset Scene ----");
         SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
     }
 }
コード例 #2
0
        void Update()
        {
            A.pressed = OculusTouchInput.GetRightAPress();
            A.touch   = OculusTouchInput.GetRightATouch();

            B.pressed = OculusTouchInput.GetRightBPress();
            B.touch   = OculusTouchInput.GetRightBTouch();

            leftThumbstick.x = OculusTouchInput.GetLeftThumbstickHorizontal();
            leftThumbstick.y = OculusTouchInput.GetLeftThumbstickVertical();

            rightThumbstick.x = OculusTouchInput.GetRightThumbstickHorizontal();
            rightThumbstick.y = OculusTouchInput.GetRightThumbstickVertical();

            leftTrigger  = OculusTouchInput.GetLeftIndex();
            rightTrigger = OculusTouchInput.GetRightIndex();
        }