mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
NetworkTransformBase: Eliminate redundant code
This commit is contained in:
parent
64b6e5863f
commit
6539bbc136
@ -332,8 +332,7 @@ protected virtual void OnTeleport(Vector3 destination)
|
|||||||
// but server's last delta will have been reset, causing offsets.
|
// but server's last delta will have been reset, causing offsets.
|
||||||
//
|
//
|
||||||
// instead, simply clear snapshots.
|
// instead, simply clear snapshots.
|
||||||
serverSnapshots.Clear();
|
ResetState();
|
||||||
clientSnapshots.Clear();
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// what if we still receive a snapshot from before the interpolation?
|
// 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.
|
// but server's last delta will have been reset, causing offsets.
|
||||||
//
|
//
|
||||||
// instead, simply clear snapshots.
|
// instead, simply clear snapshots.
|
||||||
serverSnapshots.Clear();
|
ResetState();
|
||||||
clientSnapshots.Clear();
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
// what if we still receive a snapshot from before the interpolation?
|
// what if we still receive a snapshot from before the interpolation?
|
||||||
|
Loading…
Reference in New Issue
Block a user