mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
resets
This commit is contained in:
parent
3697951400
commit
85270951a7
@ -795,6 +795,13 @@ public virtual void Reset()
|
||||
// so let's clear the buffers.
|
||||
serverSnapshots.Clear();
|
||||
clientSnapshots.Clear();
|
||||
|
||||
// reset delta compression
|
||||
lastSerializedBaselineTick = 0;
|
||||
lastDeserializedBaselineTick = 0;
|
||||
lastDeserializedBaselinePosition = Vector3.zero;
|
||||
lastDeserializedBaselineRotation = Quaternion.identity;
|
||||
lastDeserializedBaselineScale = Vector3.one;
|
||||
}
|
||||
|
||||
protected virtual void OnDisable() => Reset();
|
||||
|
Loading…
Reference in New Issue
Block a user