添加无效射击通知

This commit is contained in:
kron
2025-08-21 16:15:29 +08:00
parent 0d1e0737ff
commit 4347dea41e
3 changed files with 12 additions and 1 deletions

View File

@@ -135,6 +135,11 @@ async function onReceiveMessage(messages = []) {
: "未上靶";
audioManager.play(currentSound.value);
}
} else if (msg.constructor === MESSAGETYPES.InvalidShot) {
uni.showToast({
title: "无效射击",
icon: "none",
});
} else if (msg.constructor === MESSAGETYPES.AllReady) {
audioManager.play("比赛开始");
} else if (msg.constructor === MESSAGETYPES.MeleeAllReady) {