diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index e6a1f523..74e47e24 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -63,16 +63,25 @@ public class LoginPanel : Base // 打印 access_token Debug.Log(serverData.data.access_token); - // 跳转场景 - ReadRoom.instance.head(); + //如果是管理员账号就跳预定演练 //if (loginBody.userType == "company_user") - // SceneManager.LoadScene(1); + if(loginBody.username == id.text && loginBody.password == pwd.text) + { + SceneManager.LoadScene(1); + } + if(id.text == "13051628292" && pwd.text == "ZF16c788632") + { + ReadRoom.instance.head(); + } + ////如果是玩家账号就跳转到加入房间界面 //if (loginBody.userType == "Player") - // SceneManager.LoadScene(2); + // SceneManager.LoadScene(5); + // 跳转场景 + //ReadRoom.instance.head(); }