登录,房间列表跳转
This commit is contained in:
parent
c3fc4b7c0b
commit
91d58b2f4d
@ -82,5 +82,6 @@ public class Drill : MonoBehaviour
|
|||||||
//SceneManager.LoadScene(2);
|
//SceneManager.LoadScene(2);
|
||||||
Debug.Log("点击了演练计划按钮!");
|
Debug.Log("点击了演练计划按钮!");
|
||||||
// 这里可以添加具体逻辑
|
// 这里可以添加具体逻辑
|
||||||
|
SceneManager.LoadScene("scheduled_exercise");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,11 @@ public class RoomManager : MonoBehaviour
|
|||||||
gameRoomListInstance = FindObjectOfType<gameRoomList>();
|
gameRoomListInstance = FindObjectOfType<gameRoomList>();
|
||||||
contentParent =transform.Find("Mid/Scroll View/Viewport/Content").transform;
|
contentParent =transform.Find("Mid/Scroll View/Viewport/Content").transform;
|
||||||
gameRoomListInstance = FindObjectOfType<gameRoomList>();
|
gameRoomListInstance = FindObjectOfType<gameRoomList>();
|
||||||
|
if(!ReadRoom.instance.isadministrator)
|
||||||
|
{
|
||||||
FetchRoomList();
|
FetchRoomList();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 异步获取房间数据
|
// 异步获取房间数据
|
||||||
private async void FetchRoomList()
|
private async void FetchRoomList()
|
||||||
|
@ -147,7 +147,7 @@ public class Status : MonoBehaviour
|
|||||||
if (!eventAdded)
|
if (!eventAdded)
|
||||||
{
|
{
|
||||||
//点击生成评估报告
|
//点击生成评估报告
|
||||||
//Assessmentreport.onClick.AddListener(OnClickAssessmentreport);
|
Assessmentreport.onClick.AddListener(OnClickAssessmentreport);
|
||||||
Review.onClick.AddListener(OnClickReviewBtn);
|
Review.onClick.AddListener(OnClickReviewBtn);
|
||||||
eventAdded = true;
|
eventAdded = true;
|
||||||
}
|
}
|
||||||
|
@ -1666,7 +1666,9 @@ MonoBehaviour:
|
|||||||
isOngoing: 0
|
isOngoing: 0
|
||||||
isScheduled: 0
|
isScheduled: 0
|
||||||
drill: {fileID: 0}
|
drill: {fileID: 0}
|
||||||
|
text: {fileID: 0}
|
||||||
timetext: {fileID: 6282968326833298297}
|
timetext: {fileID: 6282968326833298297}
|
||||||
|
JSONReader: {fileID: 0}
|
||||||
RoomId:
|
RoomId:
|
||||||
status:
|
status:
|
||||||
TemplateId:
|
TemplateId:
|
||||||
|
@ -17474,7 +17474,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!4 &984064306
|
--- !u!4 &984064306
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -69,6 +69,8 @@ public class LoginPanel : Base
|
|||||||
//if (loginBody.userType == "company_user")
|
//if (loginBody.userType == "company_user")
|
||||||
if(loginBody.username == id.text && loginBody.password == pwd.text)
|
if(loginBody.username == id.text && loginBody.password == pwd.text)
|
||||||
{
|
{
|
||||||
|
Debug.LogError(11);
|
||||||
|
ReadRoom.instance.isadministrator=true;
|
||||||
SceneManager.LoadScene(1);
|
SceneManager.LoadScene(1);
|
||||||
}
|
}
|
||||||
else if(id.text == "13051628292" && pwd.text == "ZF16c788632")
|
else if(id.text == "13051628292" && pwd.text == "ZF16c788632")
|
||||||
|
Loading…
Reference in New Issue
Block a user