Skip to content

Commit cce1185

Browse files
update
1 parent a6b852f commit cce1185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Components/Helpers/UnifiedUpdateConnections.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ protected override void OnUpdate()
5858
// client has signaled that it has synchronized (or has been sent the synchronization data) we finalize the in-game connection state (or something along those lines).
5959
if (!m_NewConnections.ContainsKey(networkId.Value))
6060
{
61-
var newConnection = new NetcodeConnection { World = World, Entity = entity, NetworkId = networkId.Value, ConnectedTime = UnityEngine.Time.realtimeSinceStartup + 1.0f };
61+
var delayTime = isServer ? 0.5f : 1.0f;
62+
var newConnection = new NetcodeConnection { World = World, Entity = entity, NetworkId = networkId.Value, ConnectedTime = UnityEngine.Time.realtimeSinceStartup + delayTime};
6263
m_NewConnections.Add(networkId.Value, newConnection);
6364
}
6465
}

0 commit comments

Comments
 (0)