コード例 #1
0
        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;
            }
        }
コード例 #2
0
 protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName)
 {
     base.OnButtonClickWithButtonName(button, pButtonName);
     if (pButtonName == "btnCoverPageStart")
     {
         CocoMainController.EnterScene(CocoSceneID.Map);
     }
 }
コード例 #3
0
        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;
                }
            }
        }
コード例 #4
0
 private void OnPopupCloseEvent(CocoUINormalButton btn)
 {
     if (btn == m_VBtn)
     {
         m_ChangeDoll = true;
     }
     else
     {
         m_ChangeDoll = false;
     }
 }
コード例 #5
0
        protected override void OnButtonClickWithButtonName(CocoUINormalButton button, string pButtonName)
        {
            switch (pButtonName)
            {
            case "BubbleButton":
                CocoMainController.EnterScene(nextSceneId);
                break;

            default:
                base.OnButtonClickWithButtonName(button, pButtonName);
                break;
            }
        }
コード例 #6
0
        protected override void OnButtonClickWithButtonId(CocoUINormalButton button, CocoUIButtonID buttonID)
        {
            switch (buttonID)
            {
            case CocoUIButtonID.Common_Complete:
                CocoMainController.EnterScene(nextSceneId);
                break;

            default:
                base.OnButtonClickWithButtonId(button, buttonID);
                break;
            }
        }
コード例 #7
0
    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;
    }
コード例 #8
0
 protected virtual void OnButtonClick(CocoUINormalButton button)
 {
     if (!gameObject.activeInHierarchy)
     {
         return;
     }
     if (button.UseButtonID)
     {
         OnButtonClickWithButtonId(button.ButtonID);
     }
     else
     {
         OnButtonClickWithButtonName(button.ButtonKey);
     }
 }
コード例 #9
0
        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;
            }
        }
コード例 #10
0
 protected override void OnUIButtonClick(CocoUINormalButton button)
 {
 }