DebugForwarding
This commit is contained in:
parent
d111c2f8cd
commit
c7969d12fc
2 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,7 @@ namespace ZoFo.GameCore
|
||||||
{
|
{
|
||||||
List<UpdateData> updateDatas = JsonSerializer.Deserialize<List<UpdateData>>(data);
|
List<UpdateData> updateDatas = JsonSerializer.Deserialize<List<UpdateData>>(data);
|
||||||
// тут будет switch
|
// тут будет switch
|
||||||
|
AppManager.Instance.debugHud.Log(data);
|
||||||
foreach (var item in updateDatas)
|
foreach (var item in updateDatas)
|
||||||
{
|
{
|
||||||
GotData(item);
|
GotData(item);
|
||||||
|
@ -78,6 +79,7 @@ namespace ZoFo.GameCore
|
||||||
{
|
{
|
||||||
for (int i = 0; i < gameObjects.Count; i++)
|
for (int i = 0; i < gameObjects.Count; i++)
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.debugHud.Set("GameTime", gameTime.TotalGameTime.ToString());
|
||||||
gameObjects[i].UpdateAnimations();
|
gameObjects[i].UpdateAnimations();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ namespace ZoFo.GameCore
|
||||||
public void OnDataSend(string data)
|
public void OnDataSend(string data)
|
||||||
{
|
{
|
||||||
List<UpdateData> updateDatas = JsonSerializer.Deserialize<List<UpdateData>>(data);
|
List<UpdateData> updateDatas = JsonSerializer.Deserialize<List<UpdateData>>(data);
|
||||||
|
AppManager.Instance.debugHud.Log(data);
|
||||||
for (int i = 0; i < updateDatas.Count; i++)
|
for (int i = 0; i < updateDatas.Count; i++)
|
||||||
{
|
{
|
||||||
ProcessIUpdateData(updateDatas[i]);
|
ProcessIUpdateData(updateDatas[i]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue