二次登录
This commit is contained in:
parent
60a25efba0
commit
f1373939a8
@ -603,7 +603,7 @@ public class test : MonoBehaviour
|
||||
wEBScriptListener.OnCallback += callback;
|
||||
if (wEBScriptListener != null)
|
||||
{
|
||||
//lodingWebSocket();
|
||||
//lodingWebSocket(ReadRoom.instance.ID);
|
||||
//JoinRoom();
|
||||
Heartbeat();
|
||||
//BroadcastMessage();
|
||||
|
@ -22,6 +22,7 @@ public class ReadRoom : MonoBehaviour
|
||||
public string roomid;
|
||||
public loginData playerdetail;
|
||||
public test test;
|
||||
public string ID;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
@ -104,6 +104,7 @@ public class Starthost : MonoBehaviour
|
||||
posiBtn.gameObject.SetActive(true);
|
||||
start.gameObject.SetActive(true);
|
||||
}
|
||||
test.lodingWebSocket(ReadRoom.instance.ID);
|
||||
}
|
||||
void OnEnable()
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ public class LoginPanel : Base
|
||||
|
||||
// 将登录响应数据保存到静态变量中
|
||||
GlobalData.ServerData = serverData;
|
||||
|
||||
ReadRoom.instance.ID = id.text;
|
||||
test.lodingWebSocket(id.text);
|
||||
// 打印 access_token
|
||||
Debug.Log(serverData.data.access_token);
|
||||
|
Loading…
Reference in New Issue
Block a user