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_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &2576427188027533924 --- !u!224 &2576427188027533924
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

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

View File

@ -66,14 +66,14 @@ void Update()
clientBufferText.text = $"C: {new string('-', clientSnapCount)}"; clientBufferText.text = $"C: {new string('-', clientSnapCount)}";
if (NetworkClient.localTimescale < 0) //if (NetworkClient.localTimescale < 0)
localTimescaleText.color = slowdownColor; // localTimescaleText.color = slowdownColor;
else if (NetworkClient.localTimescale > 0) //else if (NetworkClient.localTimescale > 0)
localTimescaleText.color = catchupColor; // localTimescaleText.color = catchupColor;
else //else
localTimescaleText.color = Color.black; // localTimescaleText.color = Color.black;
localTimescaleText.text = $"LT: {NetworkClient.localTimescale:0.0000}"; //localTimescaleText.text = $"LT: {NetworkClient.localTimescale:0.0000}";
/////// Server /////// Server
//serverSnapCount = networkTransformReliable.serverSnapshots.Count; //serverSnapCount = networkTransformReliable.serverSnapshots.Count;