From 40c41e091a102da8d52ddf197757c133cc34e320 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Sat, 28 Dec 2024 10:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=AE=9A=E6=BC=94=E7=BB=83yhj?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs b/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs index 1ac22aa3..6f9523b7 100644 --- a/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs +++ b/xiaofang/Assets/Res/gsj/scripts/ReadRoom.cs @@ -3,6 +3,7 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; +using UnityEngine.UI; public class ReadRoom : MonoBehaviour { @@ -42,7 +43,7 @@ public class ReadRoom : MonoBehaviour if(GlobalData.ServerData.data.isCreater == "N") { Debug.LogError(1); - SceneManager.LoadScene(1); + SceneManager.LoadScene("yhj"); isadministrator=true; } roomDataList = response.Data; @@ -64,12 +65,12 @@ public class ReadRoom : MonoBehaviour for (int i = 0; i < room.PlayerList.Count; i++) { - if ((GlobalData.ServerData.data.userId == room.PlayerList[i].UserId))// && ("2024/12/20" == room.ReserveDate)) + if ((GlobalData.ServerData.data.userId == room.PlayerList[i].UserId) && (formattedDate == room.ReserveDate)) { //传人物职业ID //Player.CSZS.SetPlayerID(room.PlayerList[i].RoleId); Debug.Log("可以直接进入房间"); - //SceneManager.LoadScene("Tmap 1"); + SceneManager.LoadScene("Tmap 1"); isenter = true; found = true; // 找到匹配用户 ID break; // 直接跳出循环