Commit e8de64c9 authored by 范雪寒's avatar 范雪寒

feat: onDestroy

parent 1ef63a75
......@@ -448,6 +448,12 @@ cc.Class({
},
onDestroy() {
cc.director.off('GAME_RESOURCE_LOADED_sb_karaoke_cocos');
cc.director.off('GAME_DATA_FETCHED_sb_karaoke_cocos');
cc.director.off('GAME_VIEW_DISPLAYED');
},
update(dt) {
if (this.lrc) {
// const sts = this.lrc.getCurrentAudioState();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment