diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index ac13a31b..361e8147 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -541,7 +541,7 @@ public class test : MonoBehaviour data.RoomId = roomId; data.IsReady = isready; - + Debug.Log("==========玩家准备,,,,,,,,,,,,,,"); WSMessage msg = new WSMessage(); msg.Module = "select"; msg.ServiceName = "GetSelectHistoryList"; @@ -802,6 +802,7 @@ public class test : MonoBehaviour } if (userJoinResponse.MessageType == 12)//玩家准备 { + Debug.Log("服务器给准备好消息"); 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 bcd47faa..968c6842 100644 --- a/xiaofang/Assets/Res/gsj/scripts/Starthost.cs +++ b/xiaofang/Assets/Res/gsj/scripts/Starthost.cs @@ -20,7 +20,7 @@ public class Starthost : MonoBehaviour private Button posiBtn;//人员到位情况按钮 public Button start;//开始演练按钮 public bool isReady;//在线玩家是否准备 - public bool isSatisfy;//人员是否满足 + public bool isSatisfy=false;//人员是否满足 public bool isStart=false;//演习是否开始 private GameObject time;//计时 private Text timeText;//计时时间 diff --git a/xiaofang/Assets/Scenes/Tmap 1.unity b/xiaofang/Assets/Scenes/Tmap 1.unity index f47393c7..8c30bf99 100644 --- a/xiaofang/Assets/Scenes/Tmap 1.unity +++ b/xiaofang/Assets/Scenes/Tmap 1.unity @@ -60655,7 +60655,7 @@ MonoBehaviour: m_EditorClassIdentifier: start: {fileID: 5640692781816547268} isReady: 1 - isSatisfy: 1 + isSatisfy: 0 isStart: 1 moveDuration: 2 scaleDuration: 2