protected void ResumeBGMusic() { CocoAudio.StopBgMusic(); if (!CocoAudio.IsOn) { CocoAudio.StopAll(); } else { CocoAudio.MuteAll(false); } }
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(); }
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 OnLoadingFinished() { base.OnLoadingFinished(); CocoAudio.StopBgMusic(); CocoAudio.PlayBgMusic(gameGlobalData.GetSceneBg(gameGlobalData.CurSceneID)); }