This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-30 19:22:27 +08:00
parent 09db51f67b
commit a0c687b1ed
114 changed files with 18393 additions and 13605 deletions

View File

@@ -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";
}
}
}

View File

@@ -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
{