diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformBase.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformBase.cs index e752c2020..52a622394 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformBase.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformBase.cs @@ -332,8 +332,7 @@ protected virtual void OnTeleport(Vector3 destination) // but server's last delta will have been reset, causing offsets. // // instead, simply clear snapshots. - serverSnapshots.Clear(); - clientSnapshots.Clear(); + ResetState(); // TODO // what if we still receive a snapshot from before the interpolation? @@ -358,8 +357,7 @@ protected virtual void OnTeleport(Vector3 destination, Quaternion rotation) // but server's last delta will have been reset, causing offsets. // // instead, simply clear snapshots. - serverSnapshots.Clear(); - clientSnapshots.Clear(); + ResetState(); // TODO // what if we still receive a snapshot from before the interpolation?