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; // 直接跳出循环