diff --git a/xiaofang/Assets/ProtoBuf/test.cs b/xiaofang/Assets/ProtoBuf/test.cs index 52db2dc3..abf19d21 100644 --- a/xiaofang/Assets/ProtoBuf/test.cs +++ b/xiaofang/Assets/ProtoBuf/test.cs @@ -36,7 +36,7 @@ public class test : MonoBehaviour //} //登录 - void lodingWebSocket() + public void lodingWebSocket() { LoginRequest data = new LoginRequest(); data.UserId = GlobalData.ServerData.data.userId ; diff --git a/xiaofang/Assets/Scenes/loginscene.unity b/xiaofang/Assets/Scenes/loginscene.unity index 623994dd..3cd06bf8 100644 --- a/xiaofang/Assets/Scenes/loginscene.unity +++ b/xiaofang/Assets/Scenes/loginscene.unity @@ -842,6 +842,7 @@ MonoBehaviour: m_EditorClassIdentifier: retbutton: {fileID: 0} ClosureObj: {fileID: 0} + test: {fileID: 7695717545649794846} loginBtn: {fileID: 1493573621} getYzmBtn: {fileID: 1341634595} id: {fileID: 998972941} diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index 0bd4e500..8063b785 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -9,7 +9,7 @@ using UnityEngine.UI; public class LoginPanel : Base { - + public test test; public Button loginBtn; public Button getYzmBtn; public InputField id; @@ -59,7 +59,7 @@ public class LoginPanel : Base // 将登录响应数据保存到静态变量中 GlobalData.ServerData = serverData; - + test.lodingWebSocket(); // 打印 access_token Debug.Log(serverData.data.access_token);