public override void InitEvent() { base.InitEvent(); PlayButton.onClick.AddListener(() => { AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); StartButton.SetBool("start", false); StartButton.SetBool("stop", true); TCZZState.SwitchPanel(SwitchPanelEnum.GamePanel); }); }
public override void InitEvent() { base.InitEvent(); Image_Right_Button.onClick.AddListener(() => { Right(); }); Image_Left_Button.onClick.AddListener(() => { Left(); }); BackButton.onClick.AddListener(() => { AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); TCZZState.SwitchPanel(MTFrame.MTEvent.SwitchPanelEnum.StartMenuPanel); }); }
public override void InitEvent() { base.InitEvent(); BackButton.onClick.AddListener(() => { AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); TCZZState.SwitchPanel(SwitchPanelEnum.StartMenuPanel); }); ConcirmButton.onClick.AddListener(() => { CloseTips(); AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); ModelControl.Instance.IsGameStart = false; string ImgName = Time.time.ToString(); WorksDataControl.Instance.WorksDisplayPath.Add(ImgName); string str = Application.streamingAssetsPath + "/" + SaveImaPath + "/" + ImgName + ".jpg"; StartCoroutine(getScreenTexture(str)); completePanel.Open(); }); tips1Button.onClick.AddListener(() => { tips1.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact).OnComplete(() => { if (tips2.alpha == 0) { Handtips.gameObject.GetComponent <Animation>().Stop(); Handtips.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact); } }); tips1.blocksRaycasts = false; }); tips2Button.onClick.AddListener(() => { tips2.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact).OnComplete(() => { if (tips1.alpha == 0) { Handtips.gameObject.GetComponent <Animation>().Stop(); Handtips.DOFillAlpha(0, 0.5f, TweenMode.NoUnityTimeLineImpact); } }); tips2.blocksRaycasts = false; }); }
public override void InitEvent() { base.InitEvent(); RemakeButtom.onClick.AddListener(() => { Hide(); AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); //GamePanel.CurrentModel.gameObject.SetActive(true); //ModelControl.Instance.ResetMaterial(); gamepanel.Open(); }); AppreciateButton.onClick.AddListener(() => { Hide(); AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); TCZZState.SwitchPanel(MTFrame.MTEvent.SwitchPanelEnum.AppreciatePanel); }); ReturnButton.onClick.AddListener(() => { Hide(); TCZZState.SwitchPanel(MTFrame.MTEvent.SwitchPanelEnum.StartMenuPanel); AudioManager.PlayAudio("按键声音", transform, MTFrame.MTAudio.AudioEnunType.Effset); }); }
private void BackMainMenu() { TCZZState.SwitchPanel(MTFrame.MTEvent.SwitchPanelEnum.StartMenuPanel); ModelControl.Instance.CloseModel(); GC.Collect(); }