mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NT try sync in late update
This commit is contained in:
parent
844fe69e11
commit
dbaafd6a9b
@ -44,7 +44,10 @@ public class NetworkTransformReliable : NetworkTransformBase
|
|||||||
protected TransformSnapshot last;
|
protected TransformSnapshot last;
|
||||||
|
|
||||||
// update //////////////////////////////////////////////////////////////
|
// update //////////////////////////////////////////////////////////////
|
||||||
void Update()
|
// movement components may change position in Update().
|
||||||
|
// use LateUpdate to always sync after user script position changes.
|
||||||
|
// otherwise the order fighting may show jitter.
|
||||||
|
void LateUpdate()
|
||||||
{
|
{
|
||||||
// if server then always sync to others.
|
// if server then always sync to others.
|
||||||
if (isServer) UpdateServer();
|
if (isServer) UpdateServer();
|
||||||
|
Loading…
Reference in New Issue
Block a user