预定演练yhj
This commit is contained in:
parent
1441e13a50
commit
40c41e091a
@ -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; // 直接跳出循环
|
||||
|
Loading…
Reference in New Issue
Block a user