From 45090d89cf1150ece5a77199cda0be51f3d6d3e9 Mon Sep 17 00:00:00 2001 From: ivanYYH <971586529@qq.com> Date: Wed, 30 Nov 2022 20:02:39 +0800 Subject: [PATCH] fix --- assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts b/assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts index bb8c6a6..f53103b 100644 --- a/assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts +++ b/assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts @@ -99,11 +99,15 @@ export default class SceneComponent extends MyCocosSceneComponent { if (!this._guessWords) { return; } - this._sendMsg(MsgType.USER_REQ_WOED, { word: this._guessWords, uuid: this.playerId }) + } _inputWords(word) { this._guessWords = word; + if (!this._guessWords) { + return; + } this.inputNode.getChildByName("lb").getComponent(cc.Label).string = word; + this._sendMsg(MsgType.USER_REQ_WOED, { word: this._guessWords, uuid: this.playerId }) } addPreloadImage() { -- 2.21.0