逻辑完善

This commit is contained in:
kron
2025-11-13 21:23:45 +08:00
parent bd01b179a6
commit 2fb4740752
3 changed files with 55 additions and 25 deletions

View File

@@ -172,12 +172,12 @@ async function onReceiveMessage(messages = []) {
wait.value = msg.wait;
if (msg.wait === 20) {
halfTime.value = true;
audioManager.play("中场休息");
audioManager.play("中场休息", false);
}
if (msg.wait === 0) {
halfTime.value = false;
}
}, 500);
}, 200);
}
} else if (msg.constructor === MESSAGETYPES.MatchOver) {
audioManager.play("比赛结束");