From 451c297a435770df9d9e96ea0751c551522c4359 Mon Sep 17 00:00:00 2001 From: miwarnec Date: Mon, 11 Nov 2024 16:58:42 +0100 Subject: [PATCH] NTHybrid: fix name and Unity 2019 support --- ...workTransformHybrid2022.cs => NetworkTransformHybrid.cs} | 6 +++--- ...ormHybrid2022.cs.meta => NetworkTransformHybrid.cs.meta} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename Assets/Mirror/Components/NetworkTransform/{NetworkTransformHybrid2022.cs => NetworkTransformHybrid.cs} (99%) rename Assets/Mirror/Components/NetworkTransform/{NetworkTransformHybrid2022.cs.meta => NetworkTransformHybrid.cs.meta} (100%) diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid.cs similarity index 99% rename from Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs rename to Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid.cs index 1c0c55422..7687c345d 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid.cs @@ -367,7 +367,7 @@ protected virtual void OnClientToServerDeltaSync(byte baselineTick, Vector3 posi bufferSizeLimit, new TransformSnapshot( timestamp, // arrival remote timestamp. NOT remote time. - Time.timeAsDouble, + NetworkTime.localTime, // Unity 2019 doesn't have Time.timeAsDouble yet position, rotation, scale @@ -710,8 +710,8 @@ protected virtual void OnServerToClientDeltaSync(byte baselineTick, Vector3 posi clientSnapshots, bufferSizeLimit, new TransformSnapshot( - timestamp, // arrival remote timestamp. NOT remote time. - Time.timeAsDouble, + timestamp, // arrival remote timestamp. NOT remote time. + NetworkTime.localTime, // Unity 2019 doesn't have Time.timeAsDouble yet position, rotation, scale diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs.meta b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid.cs.meta similarity index 100% rename from Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs.meta rename to Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid.cs.meta