void Update() { if (resetSceneButtonEnabled && OculusTouchInput.GetRightAPress()) { Debug.Log("---- reset Scene ----"); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); } }
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(); }