diff --git a/Assets/Tests/Runtime/Syncing/SyncDirectionSyncVarsTest_Host.cs b/Assets/Tests/Runtime/Syncing/SyncDirectionSyncVarsTest_Host.cs index 35aad69aaf..b7035a92f2 100644 --- a/Assets/Tests/Runtime/Syncing/SyncDirectionSyncVarsTest_Host.cs +++ b/Assets/Tests/Runtime/Syncing/SyncDirectionSyncVarsTest_Host.cs @@ -68,7 +68,7 @@ protected static void SetDirection(NetworkBehaviour behaviour, SyncFrom from, Sy behaviour.SyncSettings.From = from; behaviour.SyncSettings.To = to; - behaviour._nextSyncTime = Time.time; + behaviour._nextSyncTime = Time.timeAsDouble; behaviour.UpdateSyncObjectShouldSync(); } protected void SetDirection(SyncFrom from, SyncTo to) diff --git a/Assets/Tests/Runtime/Syncing/SyncDirectionTestBase.cs b/Assets/Tests/Runtime/Syncing/SyncDirectionTestBase.cs index 33b8c9c49c..9e2cf15876 100644 --- a/Assets/Tests/Runtime/Syncing/SyncDirectionTestBase.cs +++ b/Assets/Tests/Runtime/Syncing/SyncDirectionTestBase.cs @@ -53,7 +53,7 @@ protected static void SetDirection(NetworkBehaviour behaviour, SyncFrom from, Sy behaviour.SyncSettings.From = from; behaviour.SyncSettings.To = to; - behaviour._nextSyncTime = Time.time; + behaviour._nextSyncTime = Time.timeAsDouble; behaviour.SyncSettings.Timing = SyncTiming.NoInterval; behaviour.UpdateSyncObjectShouldSync(); } diff --git a/Assets/Tests/Runtime/Syncing/SyncVarVirtualTest.cs b/Assets/Tests/Runtime/Syncing/SyncVarVirtualTest.cs index 0a5c201b54..845366ed2b 100644 --- a/Assets/Tests/Runtime/Syncing/SyncVarVirtualTest.cs +++ b/Assets/Tests/Runtime/Syncing/SyncVarVirtualTest.cs @@ -79,7 +79,7 @@ private void SyncValuesWithClient() observersWriter.Reset(); // make sure it is time to sync - serverComponent._nextSyncTime = Time.time; + serverComponent._nextSyncTime = Time.timeAsDouble; serverIdentity.OnSerializeAll(true, ownerWriter, observersWriter); // apply all the data from the server object