private void MenuUpdate(float timeProcess) { if (Menu != null && Menu.GetStateUp(SteamVR_Input_Sources.Any) && !tutorialPanel.IsOpen) { if (IsOpen) { Hide(); } else { Open(); } SphereControl.Instance.Laser_OpenAndClose(); } if (IsOpen && detailsPanel.DetailsCanvasGroups[1].alpha > 0 && tutorialPanel.Teach1 && tutorialPanel.IsTeaching) { if (TurnLeft != null && TurnLeft.GetStateUp(SteamVR_Input_Sources.Any)) { if (tutorialPanel.IsOpen) { if (tutorialPanel.IsTeach1 && !tutorialPanel.IsTeach2) { tutorialPanel.IsLeft = true; tutorialPanel.shoubing_left.Stop(); tutorialPanel.shoubing_left.transform.GetComponent <CanvasGroup>().alpha = 0; detailsPanel.Previous_Page(); if (tutorialPanel.IsRight && tutorialPanel.IsLeft) { tutorialPanel.IsTeach2 = true; tutorialPanel.Tutorial_3(); } } } else { detailsPanel.Previous_Page(); } } if (TurnRight != null && TurnRight.GetStateUp(SteamVR_Input_Sources.Any)) { if (tutorialPanel.IsOpen) { if (tutorialPanel.IsTeach1 && !tutorialPanel.IsTeach2) { tutorialPanel.IsRight = true; tutorialPanel.shoubing_right.Stop(); tutorialPanel.shoubing_right.transform.GetComponent <CanvasGroup>().alpha = 0; detailsPanel.Next_Page(); if (tutorialPanel.IsRight && tutorialPanel.IsLeft) { tutorialPanel.IsTeach2 = true; tutorialPanel.Tutorial_3(); } } } else { detailsPanel.Next_Page(); } } } }