房间比赛流程同步
This commit is contained in:
@@ -107,13 +107,10 @@ async function onReceiveMessage(messages = []) {
|
||||
blueScores.value = [msg.target];
|
||||
}
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.RoundPoint) {
|
||||
// bluePoints.value += msg.blueScore;
|
||||
// redPoints.value += msg.redScore;
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.CurrentRoundEnded) {
|
||||
const result = msg.preRoundResult;
|
||||
scores.value = [];
|
||||
blueScores.value = [];
|
||||
currentShooterId.value = 0;
|
||||
currentBluePoint.value = result.blueScore;
|
||||
currentRedPoint.value = result.redScore;
|
||||
|
||||
Reference in New Issue
Block a user