Commit b1420a38 authored by liujiaxin's avatar liujiaxin

1

parent 40cd4b23
......@@ -300,13 +300,22 @@ cc.Class({
}
}
playAudioByUrl(wrongEffect, () => {
if (context.questionPlayTimes >= context.maxQuestionTryTimes) {
const an = context.questions[context.questionIndex].node;
an.active = true;
const dragonDisplay = an.getComponent(dragonBones.ArmatureDisplay);
dragonDisplay.playAnimation('normal', 0);
console.log('show animation', an.active);
}
playAudioByUrl(wrongEffect, () => {
if (context.questionPlayTimes >= context.maxQuestionTryTimes) {
// const an = context.questions[context.questionIndex].node;
// an.active = true;
// const dragonDisplay = an.getComponent(dragonBones.ArmatureDisplay);
// dragonDisplay.playAnimation('normal', 0);
console.log('show animation', an.active);
reject()
} else {
resolve()
......
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