/// <summary> /// 退出培训流程,返回到菜单界面 /// </summary> public void backMenu() { outExamBtn.SetActive(false); uitool.controlPanel.SetActive(true); UIManager.getInstance().selectTopicUI.mask.SetActive(false); errorCount = 0; if (!(alertMSG == null || !alertMSG.gameObject.activeSelf)) { ResourceManager.getInstance().getUIPool.Despawn(alertMSG.transform); } if (flowMovie.activeSelf) { flowMovie.SetActive(false); movieManager.OnStop(); } flowOperateImage.SetActive(false); flowOperateMovie.SetActive(false); examCountDown.onStop(); examCountDown.gameObject.SetActive(false); trainEndUI.gameObject.SetActive(false); isBackMenu = true; //tabStrip.tabs[(int)currentTrainMode].GetComponent<UIToggle>().value = false; for (int i = 0; i < coverTabs.Length; i++) { tabStrip.tabs[i].Set(false); } if (nextProcess.switchMode.activeSelf) { nextProcess.switchMode.SetActive(false); } changeCount = 0; uitool.setTextl(null); uitool.setPopText(null); tabStrip.restTabStrip(); indexNumber = -1; uitool.setShiwaiSliderValue(Convert.ToSingle(indexNumber + 1) / Convert.ToSingle(count), indexNumber + 1, count); TrainingManager.ExitFlow(); //音乐调节 AudioManager.getInstance().SetGroundScale(1f); AudioManager.getInstance().AudioPlay(GlobalConfig.backgroundMusic, AudioManager.MusicNumType.groundMusic); AudioManager.getInstance().AudioStop(AudioManager.MusicNumType.realtimeMusic); //返回的时候停止实时音乐 SceneManager.LoadScene("MainUI"); trainEndUI.gameObject.SetActive(false); trainStartUI.gameObject.SetActive(false); isShowTrainStart = false; isStartTrain = false; this.currentReciprocal = null; this.isWalkCamea = true; backSuperNodeBtn.gameObject.SetActive(false); this.isStartTrain = false; UIManager.getInstance().selectTopicUI.gameObject.SetActive(false); ScreenRaycaster raycaster = GameObject.Find("FingerGestures").GetComponent <ScreenRaycaster>(); raycaster.Cameras = new Camera[1]; raycaster.Cameras[0] = GameObject.FindObjectOfType <Main>().GetComponent <Camera>(); UIManager.getInstance().setActiveUI(UIType.MainMenu); examGrade.GetComponent <Camera>().depth = -50; CoherentUISystem.Instance.UIViews.Remove(examGrade); }