细节调整
This commit is contained in:
@@ -167,14 +167,13 @@ async function onReceiveMessage(messages = []) {
|
||||
const redPlayer = redTeam.value.find(
|
||||
(item) => item.id === currentShooterId.value
|
||||
);
|
||||
tips.value = redPlayer ? "请红队射箭" : "请蓝队射箭";
|
||||
uni.$emit("update-tips", tips.value);
|
||||
// if (redPlayer) tips.value = "红队" + redPlayer.id;
|
||||
// const bluePlayer = blueTeam.value.find(
|
||||
// (item) => item.id === currentShooterId.value
|
||||
// );
|
||||
// if (bluePlayer) tips.value = "蓝队" + bluePlayer.id;
|
||||
uni.$emit("update-tips", tips.value);
|
||||
const nextTips = redPlayer ? "请红队射箭" : "请蓝队射箭";
|
||||
if (nextTips !== tips.value) {
|
||||
tips.value = nextTips;
|
||||
uni.$emit("update-tips", tips.value);
|
||||
} else {
|
||||
uni.$emit("update-ramain", 15);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.ShootResult) {
|
||||
|
||||
Reference in New Issue
Block a user