mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: make smooth again
This commit is contained in:
parent
d1df18b68a
commit
6de845b5ff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user