预定演练yhj
This commit is contained in:
parent
1441e13a50
commit
40c41e091a
@ -3,6 +3,7 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class ReadRoom : MonoBehaviour
|
public class ReadRoom : MonoBehaviour
|
||||||
{
|
{
|
||||||
@ -42,7 +43,7 @@ public class ReadRoom : MonoBehaviour
|
|||||||
if(GlobalData.ServerData.data.isCreater == "N")
|
if(GlobalData.ServerData.data.isCreater == "N")
|
||||||
{
|
{
|
||||||
Debug.LogError(1);
|
Debug.LogError(1);
|
||||||
SceneManager.LoadScene(1);
|
SceneManager.LoadScene("yhj");
|
||||||
isadministrator=true;
|
isadministrator=true;
|
||||||
}
|
}
|
||||||
roomDataList = response.Data;
|
roomDataList = response.Data;
|
||||||
@ -64,12 +65,12 @@ public class ReadRoom : MonoBehaviour
|
|||||||
for (int i = 0; i < room.PlayerList.Count; i++)
|
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
|
//传人物职业ID
|
||||||
//Player.CSZS.SetPlayerID(room.PlayerList[i].RoleId);
|
//Player.CSZS.SetPlayerID(room.PlayerList[i].RoleId);
|
||||||
Debug.Log("可以直接进入房间");
|
Debug.Log("可以直接进入房间");
|
||||||
//SceneManager.LoadScene("Tmap 1");
|
SceneManager.LoadScene("Tmap 1");
|
||||||
isenter = true;
|
isenter = true;
|
||||||
found = true; // 找到匹配用户 ID
|
found = true; // 找到匹配用户 ID
|
||||||
break; // 直接跳出循环
|
break; // 直接跳出循环
|
||||||
|
Loading…
Reference in New Issue
Block a user