protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName) { base.OnButtonClickWithButtonName(button, pButtonName); switch (pButtonName) { case "doll": CocoMainController.ShowPopup("RoleSelectedPopup"); m_RoleSelectPopup = FindObjectOfType <RoleSelectedPopup>(); if (m_RoleSelectPopup != null) { m_RoleSelectPopup.OnCloseDollSelect += OnChangeDoll; } break; case "Talk": StartCoroutine(HideTalk()); break; case "start": GlobalData.curSelectRole = -1; CocoMainController.EnterScene(CocoSceneID.Doll); break; } }
protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName) { base.OnButtonClickWithButtonName(button, pButtonName); if (pButtonName == "btnCoverPageStart") { CocoMainController.EnterScene(CocoSceneID.Map); } }
protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName) { base.OnButtonClickWithButtonName(button, pButtonName); if (pButtonName == "next") { switch (m_CurSceneStep) { case SceneStep.Step_Common: m_CurSceneStep = SceneStep.Step_Detail; StartCoroutine(ShowDetail()); break; case SceneStep.Step_Detail: m_CurSceneStep = SceneStep.Step_Finish; button.gameObject.SetActive(false); StartCoroutine(PlayAni()); break; default: m_CurSceneStep = SceneStep.Step_Common; break; } } else if (pButtonName == "font") { switch (m_CurSceneStep) { case SceneStep.Step_Common: CocoMainController.EnterScene(CocoSceneID.Map); break; case SceneStep.Step_Detail: m_CurSceneStep = SceneStep.Step_Common; break; case SceneStep.Step_Finish: m_CurSceneStep = SceneStep.Step_Detail; StartCoroutine(ShowDetail()); break; default: m_CurSceneStep = SceneStep.Step_Common; break; } } else if (pButtonName == "doll") { CocoMainController.ShowPopup("RoleSelectedPopup"); m_RoleSelectPopup = FindObjectOfType <RoleSelectedPopup>(); if (m_RoleSelectPopup != null) { m_RoleSelectPopup.OnCloseDollSelect += OnChangeDoll; } } }
private void OnPopupCloseEvent(CocoUINormalButton btn) { if (btn == m_VBtn) { m_ChangeDoll = true; } else { m_ChangeDoll = false; } }
protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName) { switch (pButtonName) { case "BubbleButton": CocoMainController.EnterScene(nextSceneId); break; default: base.OnButtonClickWithButtonName(button, pButtonName); break; } }
protected override void OnButtonClickWithButtonId(CocoUINormalButton button, CocoUIButtonID buttonID) { switch (buttonID) { case CocoUIButtonID.Common_Complete: CocoMainController.EnterScene(nextSceneId); break; default: base.OnButtonClickWithButtonId(button, buttonID); break; } }
private void OnRoleClick(CocoUINormalButton btn) { RoleClickButton t_Btn = (RoleClickButton)btn; if (m_CurRoleBtn != null) { m_CurRoleBtn.ChangeStatus(false); } GlobalData.curSelectRole = t_Btn.Index; t_Btn.ChangeStatus(true); m_CurRoleBtn = t_Btn; }
protected virtual void OnButtonClick(CocoUINormalButton button) { if (!gameObject.activeInHierarchy) { return; } if (button.UseButtonID) { OnButtonClickWithButtonId(button.ButtonID); } else { OnButtonClickWithButtonName(button.ButtonKey); } }
protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName) { base.OnButtonClickWithButtonName(button, pButtonName); switch (pButtonName) { case "Speack": CocoAudio.StopBgMusic(); StartListeningButtonOnClickHandler(); break; case "Stop": StopListeningButtonOnClickHandler(); CocoAudio.PlayBgMusic(gameGlobalData.GetSceneBg(gameGlobalData.CurSceneID)); break; // case "speed": // _speechRepeater.audioConfig.volume += 1f; // break; // // case "Tone": // _speechRepeater.audioConfig.pitch += 1f; // break; } }
protected override void OnUIButtonClick(CocoUINormalButton button) { }