fix: make smooth again

This commit is contained in:
vis2k 2022-10-20 18:47:48 +02:00
parent d1df18b68a
commit 6de845b5ff

View File

@ -60,6 +60,13 @@ public abstract class NetworkTransformBase : NetworkBehaviour
// make sure to call this when inheriting too! // make sure to call this when inheriting too!
protected virtual void Awake() {} protected virtual void Awake() {}
public override void OnStartServer()
{
// force 0 to send every NetworkServer.sendInterval.
// if we use an interval that's much higher, then it's not smooth.
syncInterval = 0;
}
// snapshot functions ////////////////////////////////////////////////// // snapshot functions //////////////////////////////////////////////////
// construct a snapshot of the current state // construct a snapshot of the current state
// => internal for testing // => internal for testing