last unreliable state time

This commit is contained in:
mischa 2024-09-05 14:38:48 +02:00
parent b6bb3d3af4
commit 32b784376d

View File

@ -229,6 +229,10 @@ public Visibility visible
observersWriter = new NetworkWriter()
};
// unreliable state sync messages may arrive out of order, or duplicated.
// keep latest received timestamp so we don't apply older messages.
internal double lastUnreliableStateTime;
// Keep track of all sceneIds to detect scene duplicates
static readonly Dictionary<ulong, NetworkIdentity> sceneIds =
new Dictionary<ulong, NetworkIdentity>();