// Called every frame void Update () { // If the panel controller is active and the user presses the "back" button, enables/disables the pause menu if (m_Active && OVRInput.Get (OVRInput.Button.Back)) { m_CameraFade.FadePause (); m_PauseMenu.SetActive (!m_PauseMenu.activeSelf); } }