Commit ff3ecde3 authored by liujiaxin's avatar liujiaxin

11

parent 87831504
......@@ -249,6 +249,7 @@ cc.Class({
console.log('answer right');
// this.playAni(context.questionIndex, 'normal')
const an = context.questions[context.questionIndex].node;
console.log('in right ' + (typeof an))
an.active = true;
const dragonDisplay = an.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('normal', 0);
......@@ -674,10 +675,7 @@ cc.Class({
});
},
onDestroy(){
this.gameMachineService.stopChild();
this.gameMachineService.stop();
},
loadEnd() {
if (window && window["air"] && window["air"].hideAirClassLoading) {
window["air"].hideAirClassLoading();
......@@ -799,12 +797,15 @@ cc.Class({
_intervalIds: null,
// 生命周期
onDestroy() {
console.log('op15 onDestroy');
this._timeoutIds.forEach(id => {
clearTimeout(id);
});
this._intervalIds.forEach(id => {
clearInterval(id);
});
this.gameMachineService.stopChild();
this.gameMachineService.stop();
},
......
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