|
@@ -39,6 +39,7 @@ export class top_layer extends Component {
|
|
|
}
|
|
|
|
|
|
public unInit(){
|
|
|
+ this.soundTextContentAudioStop()
|
|
|
this.sound_text_content.active = false;
|
|
|
this.fail_ani_view.active = false;
|
|
|
this.question_content.removeAllChildren()
|
|
@@ -50,6 +51,7 @@ export class top_layer extends Component {
|
|
|
this.mTextSoundList.clear()
|
|
|
this.mQuestionList.clear()
|
|
|
this.mIsShowWin = false;
|
|
|
+ this.unscheduleAllCallbacks()
|
|
|
ClientEvent.off(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
|
|
|
ClientEvent.off(config.EventRun.ON_WIN,this.onWin.bind(this),this)
|
|
|
ClientEvent.off(config.EventRun.SHOW_TIPS,this.onShowWidgetTip.bind(this),this)
|
|
@@ -110,6 +112,10 @@ export class top_layer extends Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ soundTextContentAudioStop() {
|
|
|
+ this.sound_text_content.getComponent(sound_text_content).onAudioEnded(false)
|
|
|
+ }
|
|
|
+
|
|
|
onWin(){
|
|
|
if(this.mIsShowWin==false) {
|
|
|
this.win.getComponent(win).show(this.onClickShare.bind(this),this.onClickNext.bind(this))
|
|
@@ -118,7 +124,9 @@ export class top_layer extends Component {
|
|
|
ClientEvent.dispatchEvent(config.EventRun.WIN_LATER_AUTO_UNLOCK_NEXT_LEVEL,level_data)
|
|
|
|
|
|
setTimeout(()=> {
|
|
|
- SdkUtil.ttStopScreenRecording()
|
|
|
+ if(this.mIsShowWin) {
|
|
|
+ SdkUtil.ttStopScreenRecording()
|
|
|
+ }
|
|
|
},1500)
|
|
|
}
|
|
|
}
|