Commit 0e9cad53 authored by limingzhe's avatar limingzhe

fix: 动画时间过短 音频过长 导致按不动

parent 920f30b2
...@@ -257,9 +257,9 @@ cc.Class({ ...@@ -257,9 +257,9 @@ cc.Class({
let audioDone = false; let audioDone = false;
this.dragonBone.once(dragonBones.EventObject.COMPLETE, () => { this.dragonBone.once(dragonBones.EventObject.COMPLETE, () => {
dragonbonesDone = true; dragonbonesDone = true;
GameData.audioCount--;
if (audioDone) { if (audioDone) {
cb && cb(); cb && cb();
GameData.audioCount--;
} }
}); });
this.playAudioOption((duration) => { this.playAudioOption((duration) => {
......
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