private void contactUS() { StartSceneAudioCtrl.getInstance().play(StartSceneAudioData.ADDQQ, () => { setTipsSprite(null); }); setTipsSprite("tips2"); }
// Update is called once per frame void Update() { GestureCtrl.getInstance().timer(); _curTime += Time.deltaTime; if (isFirstTimeEnterGame) { showStartAnim(); } if (_curTime > _elapseTime) { StartSceneAudioCtrl.getInstance().play(StartSceneAudioData.DOUBLE_CLICK); playSystemAudio(); } }
private void playSystemAudio() { switch (_state) { case menuState.START: StartSceneAudioCtrl.getInstance().play(StartSceneAudioData.START); break; case menuState.CONTACT: StartSceneAudioCtrl.getInstance().play(StartSceneAudioData.CONTACT_OFFICE); break; case menuState.EXIT: StartSceneAudioCtrl.getInstance().play(StartSceneAudioData.EXIT); break; } }
private void showStartAnim() { Color color = Color.white; if (_curTime < _titleDisplayTime) { color.a = _curTime / _titleDisplayTime; } _title.color = color; if (_curTime > _titleDisplayTime && ResourcesSaveUtils.getInstance().isLoaded) { StartSceneAudioCtrl.getInstance().play(StartSceneAudioData.TIPS, () => { setTipsSprite(null); }); setTipsSprite("tips1"); setState(menuState.START); // button initButton(); isFirstTimeEnterGame = false; } }