mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkTransformBase: Eliminate redundant code
This commit is contained in:
parent
dffd53a1e6
commit
278324c1f1
@ -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