From a0faf39488eeb2b08b4b3fb26c5e0a833fd67bdb Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Fri, 3 Jan 2025 11:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=951111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/ProtoBuf/test.cs | 2 +- xiaofang/Assets/Res/gsj/scripts/Starthost.cs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index 11151a54..bda62af0 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -904,6 +904,7 @@ string HandleButtoncallId=11;// } if (userJoinResponse.MessageType == 11)//房间开始 { + GameObject.Find("HostCanvas").GetComponent().isSatisfy = true; test111.instance.Oppanel(); } if (userJoinResponse.MessageType == 12)//玩家准备 @@ -912,7 +913,6 @@ string HandleButtoncallId=11;// { Debug.Log("服务器给准备好消息"); GameObject.Find("HostCanvas").GetComponent().start.interactable = true; - GameObject.Find("HostCanvas").GetComponent().isSatisfy = true; } } diff --git a/xiaofang/Assets/Res/gsj/scripts/Starthost.cs b/xiaofang/Assets/Res/gsj/scripts/Starthost.cs index 146136a3..33a9e63a 100644 --- a/xiaofang/Assets/Res/gsj/scripts/Starthost.cs +++ b/xiaofang/Assets/Res/gsj/scripts/Starthost.cs @@ -125,14 +125,14 @@ public class Starthost : MonoBehaviour } void Update() { - if(!isReady) - { - start.interactable = false; - } - else - { - start.interactable = true; - } + //if(!isReady) + //{ + // start.interactable = false; + //} + //else + //{ + // start.interactable = true; + //} if (isTimerRunning) { timer += Time.deltaTime;