mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
remove syncinterval restriction
This commit is contained in:
parent
819dd862e8
commit
0c1cab6ea2
@ -32,14 +32,6 @@ void Update()
|
||||
if (isServer) UpdateServer();
|
||||
}
|
||||
|
||||
protected override void OnValidate()
|
||||
{
|
||||
// make sure syncInterval isn't 0.
|
||||
// it's enough to correct every 100ms or so.
|
||||
syncInterval = Mathf.Max(syncInterval, 0.1f);
|
||||
base.OnValidate();
|
||||
}
|
||||
|
||||
// send state to clients every sendInterval.
|
||||
// reliable for now.
|
||||
public override void OnSerialize(NetworkWriter writer, bool initialState)
|
||||
|
Loading…
Reference in New Issue
Block a user