From 6a2e6650a2989926943d4a4aab0ea246590f30b8 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 17 Mar 2023 07:52:58 -0400 Subject: [PATCH] disabled localTimescale --- .../Mirror/Examples/TestNT/Prefabs/PlayerUI.prefab | 2 +- .../Mirror/Examples/TestNT/Scenes/OfflineWeb.unity | 2 +- .../Examples/TestNT/Scripts/PlayerBuffers.cs | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/Mirror/Examples/TestNT/Prefabs/PlayerUI.prefab b/Assets/Mirror/Examples/TestNT/Prefabs/PlayerUI.prefab index a455a2f19..2a9e610ae 100644 --- a/Assets/Mirror/Examples/TestNT/Prefabs/PlayerUI.prefab +++ b/Assets/Mirror/Examples/TestNT/Prefabs/PlayerUI.prefab @@ -742,7 +742,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &2576427188027533924 RectTransform: m_ObjectHideFlags: 0 diff --git a/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity b/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity index 3fbb98d42..d94c3dc8f 100644 --- a/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity +++ b/Assets/Mirror/Examples/TestNT/Scenes/OfflineWeb.unity @@ -239,7 +239,7 @@ MonoBehaviour: handshakeMaxSize: 3000 noDelay: 1 sendTimeout: 5000 - receiveTimeout: 20000 + receiveTimeout: 60000 serverMaxMessagesPerTick: 10000 clientMaxMessagesPerTick: 2000 batchSend: 0 diff --git a/Assets/Mirror/Examples/TestNT/Scripts/PlayerBuffers.cs b/Assets/Mirror/Examples/TestNT/Scripts/PlayerBuffers.cs index ac7bc23e4..b2844c88e 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/PlayerBuffers.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/PlayerBuffers.cs @@ -66,14 +66,14 @@ void Update() clientBufferText.text = $"C: {new string('-', clientSnapCount)}"; - if (NetworkClient.localTimescale < 0) - localTimescaleText.color = slowdownColor; - else if (NetworkClient.localTimescale > 0) - localTimescaleText.color = catchupColor; - else - localTimescaleText.color = Color.black; + //if (NetworkClient.localTimescale < 0) + // localTimescaleText.color = slowdownColor; + //else if (NetworkClient.localTimescale > 0) + // localTimescaleText.color = catchupColor; + //else + // localTimescaleText.color = Color.black; - localTimescaleText.text = $"LT: {NetworkClient.localTimescale:0.0000}"; + //localTimescaleText.text = $"LT: {NetworkClient.localTimescale:0.0000}"; /////// Server //serverSnapCount = networkTransformReliable.serverSnapshots.Count;