mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -9,7 +9,8 @@ namespace Script.AppImpl
|
||||
{
|
||||
protected override async UniTask<string> GetUrl()
|
||||
{
|
||||
return "ws://localhost:8080/websocket";
|
||||
await UniTask.NextFrame();
|
||||
return "ws://192.168.0.118:8080/websocket";
|
||||
}
|
||||
}
|
||||
}
|
@@ -13,10 +13,13 @@ namespace Script.AppImpl
|
||||
|
||||
protected override async UniTask<JNFrameInfos> OnServerData(int start, int end)
|
||||
{
|
||||
Debug.Log($"OnServerData - {start}");
|
||||
var data = (await App.Api.GetByte($"/sync/frame?start={start}"));
|
||||
if (data is { Length: > 0 })
|
||||
{
|
||||
return JNFrameInfos.Parser.ParseFrom(data);
|
||||
JNFrameInfos info = JNFrameInfos.Parser.ParseFrom(data);
|
||||
Debug.Log($"OnServerData - {start} 结束");
|
||||
return info;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user