NTHybrid: fix name and Unity 2019 support
Some checks failed
Main / Run Unity Tests (push) Has been cancelled
Main / Delete Old Workflow Runs (push) Has been cancelled
Main / Semantic Release (push) Has been cancelled

This commit is contained in:
miwarnec 2024-11-11 16:58:42 +01:00
parent 1e04c9833b
commit 451c297a43
2 changed files with 3 additions and 3 deletions

View File

@ -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