From c7969d12fc65c78cec13b08bf0b40ce74fe92244 Mon Sep 17 00:00:00 2001 From: rawer470 Date: Sun, 18 Aug 2024 11:54:05 +0300 Subject: [PATCH] DebugForwarding --- ZoFo/GameCore/Client.cs | 2 ++ ZoFo/GameCore/Server.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/ZoFo/GameCore/Client.cs b/ZoFo/GameCore/Client.cs index 665179e..eefe7f4 100644 --- a/ZoFo/GameCore/Client.cs +++ b/ZoFo/GameCore/Client.cs @@ -51,6 +51,7 @@ namespace ZoFo.GameCore { List updateDatas = JsonSerializer.Deserialize>(data); // тут будет switch + AppManager.Instance.debugHud.Log(data); foreach (var item in updateDatas) { GotData(item); @@ -78,6 +79,7 @@ namespace ZoFo.GameCore { for (int i = 0; i < gameObjects.Count; i++) { + AppManager.Instance.debugHud.Set("GameTime", gameTime.TotalGameTime.ToString()); gameObjects[i].UpdateAnimations(); } } diff --git a/ZoFo/GameCore/Server.cs b/ZoFo/GameCore/Server.cs index 26c939f..dd7939d 100644 --- a/ZoFo/GameCore/Server.cs +++ b/ZoFo/GameCore/Server.cs @@ -42,6 +42,7 @@ namespace ZoFo.GameCore public void OnDataSend(string data) { List updateDatas = JsonSerializer.Deserialize>(data); + AppManager.Instance.debugHud.Log(data); for (int i = 0; i < updateDatas.Count; i++) { ProcessIUpdateData(updateDatas[i]);