Commit 4826d297 authored by limingzhe's avatar limingzhe

fix: debug

parent 0ac8c52e
...@@ -663,7 +663,12 @@ cc.Class({ ...@@ -663,7 +663,12 @@ cc.Class({
} else { } else {
this.audioId = cc.audioEngine.play(audioClip, false, 0.8); this.audioId = cc.audioEngine.play(audioClip, false, 0.8);
setTimeout(() => {
if (this.isDestroy) {
return;
}
cc.audioEngine.pause(this.audioId); cc.audioEngine.pause(this.audioId);
}, 10);
} }
...@@ -735,7 +740,12 @@ cc.Class({ ...@@ -735,7 +740,12 @@ cc.Class({
} }
this.audioId = cc.audioEngine.play(audioClip, false, 0.8); this.audioId = cc.audioEngine.play(audioClip, false, 0.8);
setTimeout(() => {
if (this.isDestroy) {
return;
}
cc.audioEngine.pause(this.audioId); cc.audioEngine.pause(this.audioId);
}, 10);
playBtn.active = true; playBtn.active = true;
......
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