11
This commit is contained in:
parent
a15a228e2c
commit
60a25efba0
@ -49,8 +49,8 @@ public class test : MonoBehaviour
|
||||
byte[] sendData = ProtoBufffer.Serialize(msg);
|
||||
WSMessage deinfo = ProtoBufffer.DeSerialize<WSMessage>(sendData);
|
||||
LoginRequest login = ProtoBufffer.DeSerialize<LoginRequest>(deinfo.Data.ToByteArray());
|
||||
Debug.Log("되쩌");
|
||||
|
||||
Debug.Log(login);
|
||||
Debug.Log("dddddddddddddddddddd");
|
||||
wEBScriptListener.SendMessageByte(sendData);
|
||||
}
|
||||
|
||||
@ -579,9 +579,9 @@ public class test : MonoBehaviour
|
||||
data.RoomId = roomId;
|
||||
|
||||
|
||||
|
||||
Debug.Log("==========------------------ÓÃ");
|
||||
WSMessage msg = new WSMessage();
|
||||
msg.Module = "hall";
|
||||
msg.Module = "move";
|
||||
msg.ServiceName = "PlayerSituation";
|
||||
msg.Data = ByteString.CopyFrom(ProtoBufffer.Serialize(data));
|
||||
byte[] sendData = ProtoBufffer.Serialize(msg);
|
||||
@ -989,7 +989,7 @@ public class test : MonoBehaviour
|
||||
break;
|
||||
|
||||
|
||||
case "hall.PlayerSituation":
|
||||
case "move.PlayerSituation":
|
||||
Debug.LogError("Íæ¼Ò״̬11111111111111111");
|
||||
PlayerStatisticsResponse playerStatisticsResponse = ProtoBufffer.DeSerialize<PlayerStatisticsResponse>(bytes);
|
||||
foreach(var item in playerStatisticsResponse.Data)
|
||||
|
@ -178,6 +178,7 @@ public class Starthost : MonoBehaviour
|
||||
// button.onClick.AddListener(ShowPopupPanel);
|
||||
//}
|
||||
//Game.uiManager.ShowUI<Image>("Panel");
|
||||
test.PlayerSituation(ReadRoom.instance.roomid);
|
||||
Renyuan.SetActive(true);
|
||||
}
|
||||
// 显示弹出界面的方法
|
||||
|
@ -59,6 +59,7 @@ public class LoginPanel : Base
|
||||
|
||||
// 将登录响应数据保存到静态变量中
|
||||
GlobalData.ServerData = serverData;
|
||||
|
||||
test.lodingWebSocket(id.text);
|
||||
// 打印 access_token
|
||||
Debug.Log(serverData.data.access_token);
|
||||
|
Loading…
Reference in New Issue
Block a user