Commit ffa60ab0 by kaisa

feat:处理火箭升空倒计时声音播放两次bug

parent bc8c5dfd
Showing with 1 additions and 1 deletions
......@@ -138,7 +138,7 @@ function rocketStop() {
// 倒计时音效
function clock(min, sec) {
if (Number(min) == 0 && Number(sec) <= 3) {
if (Number(min) == 0 && Number(sec) == 3) {
mAudios.clock.play();
} else {
mAudios.clock.pause();
......
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 sign in to comment