Commit a06e7310 authored by jeff's avatar jeff

item更新

parent 57dd8115
......@@ -64,7 +64,10 @@ cc.Class({
/** 播放音乐 */
playAudio(url) {
if (this._playing) return
if (this._playing) {
this.stopAudio()
return
}
this._playing = true
cc.assetManager.loadRemote(url, (err, audioClip) => {
if (err) return
......
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