コード例 #1
0
 protected void ResumeBGMusic()
 {
     CocoAudio.StopBgMusic();
     if (!CocoAudio.IsOn)
     {
         CocoAudio.StopAll();
     }
     else
     {
         CocoAudio.MuteAll(false);
     }
 }
コード例 #2
0
        protected override void PlayEnd()
        {
            m_CurRole.gameObject.SetActive(false);
            m_CurRole.transform.localPosition    = Vector3.zero;
            m_CurRole.transform.localEulerAngles = Vector3.zero;

            m_CurRole.Animation.SetAutoSwithEnable(false);
//            m_CurRole.Animation.animator.Stop();

            m_CurRole.Animation.animator.runtimeAnimatorController = null;


            CocoAudio.StopBgMusic();

            m_CloseSignal.Dispatch();

            base.PlayEnd();
        }
コード例 #3
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;
            }
        }
コード例 #4
0
 protected override void OnLoadingFinished()
 {
     base.OnLoadingFinished();
     CocoAudio.StopBgMusic();
     CocoAudio.PlayBgMusic(gameGlobalData.GetSceneBg(gameGlobalData.CurSceneID));
 }