From ae74e28e9379d69effe5b06024953161de2f204f Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Wed, 25 Dec 2024 22:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/loginScripts/LoginPanel.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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(); }