Commit c48ed4c8 authored by jeff's avatar jeff

修复bug

parent bd0b2481
...@@ -76,8 +76,6 @@ cc.Class({ ...@@ -76,8 +76,6 @@ cc.Class({
let url = this.data.audio_url let url = this.data.audio_url
if (url && url != '') { if (url && url != '') {
this.playAudio(url) this.playAudio(url)
this.tipsAnim.node.active = true
this.tipsAnim.play()
} else { } else {
this._playing = false this._playing = false
} }
...@@ -104,6 +102,8 @@ cc.Class({ ...@@ -104,6 +102,8 @@ cc.Class({
if (!this._playing) return if (!this._playing) return
this.audioId = cc.audioEngine.play(audioClip, false, 0.8); this.audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(this.audioId, this.stopAudio.bind(this)); cc.audioEngine.setFinishCallback(this.audioId, this.stopAudio.bind(this));
this.tipsAnim.node.active = true
this.tipsAnim.play()
}); });
}, },
......
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