Commit f40982b3 authored by huoshizhe's avatar huoshizhe

fix: 点击喇叭发音时,打断其他发音

parent 74676c56
...@@ -279,6 +279,7 @@ cc.Class({ ...@@ -279,6 +279,7 @@ cc.Class({
} }
}, },
playAll() { playAll() {
this.stopAudio()
this.isPlaying = true; this.isPlaying = true;
let btn_loop = this.btn_audio.getComponent("btn_loop");//找到btn_loop let btn_loop = this.btn_audio.getComponent("btn_loop");//找到btn_loop
btn_loop.startPlay();//执行播放的方法 btn_loop.startPlay();//执行播放的方法
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
}, },
"android": { "android": {
"sceneName": "Book_Read", "sceneName": "Book_Read",
"version": "45c64" "version": "3a34d"
} }
} }
\ No newline at end of file
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