添加无效射击通知
This commit is contained in:
@@ -58,6 +58,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) {
|
||||
currentRoundEnded.value = true;
|
||||
audioManager.play("比赛开始");
|
||||
@@ -77,7 +82,7 @@ async function onReceiveMessage(messages = []) {
|
||||
audioManager.play("比赛结束");
|
||||
} else if (msg.constructor === MESSAGETYPES.FinalShoot) {
|
||||
audioManager.play("决金箭轮");
|
||||
tips.value = '即将开始...'
|
||||
tips.value = "即将开始...";
|
||||
} else if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
|
||||
ended.value = true;
|
||||
} else if (msg.constructor === MESSAGETYPES.MatchOver) {
|
||||
|
||||
Reference in New Issue
Block a user