Esempio n. 1
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;
            }
        }
Esempio n. 2
0
 protected override void OnLoadingFinished()
 {
     base.OnLoadingFinished();
     CocoAudio.StopBgMusic();
     CocoAudio.PlayBgMusic(gameGlobalData.GetSceneBg(gameGlobalData.CurSceneID));
 }