disabled localTimescale

This commit is contained in:
MrGadget1024 2023-03-17 07:52:58 -04:00
parent 218f36ff3c
commit 6a2e6650a2
3 changed files with 9 additions and 9 deletions

View File

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

View File

@ -239,7 +239,7 @@ MonoBehaviour:
handshakeMaxSize: 3000
noDelay: 1
sendTimeout: 5000
receiveTimeout: 20000
receiveTimeout: 60000
serverMaxMessagesPerTick: 10000
clientMaxMessagesPerTick: 2000
batchSend: 0

View File

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