Commit be34b0ce authored by limingzhe's avatar limingzhe

fix: 同一时间只有一个音频播放

parent 80702be7
......@@ -76,6 +76,14 @@ cc.Class({
this.audioId = null;
return
}
//暂停连续播放的音频
const canvas = cc.find("Canvas");
canvas.getComponent('Book_Read').stopAll();
//暂停其他正在播放的音频
cc.systemEvent.emit('stopMusic')
if (this.data) {
this.quan.getComponent(cc.Sprite).spriteFrame = this.quan_lan;
// this.btnX.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