remove syncinterval restriction

This commit is contained in:
mischa 2023-09-06 19:30:49 +02:00
parent 819dd862e8
commit 0c1cab6ea2

View File

@ -32,14 +32,6 @@ void Update()
if (isServer) UpdateServer(); 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. // send state to clients every sendInterval.
// reliable for now. // reliable for now.
public override void OnSerialize(NetworkWriter writer, bool initialState) public override void OnSerialize(NetworkWriter writer, bool initialState)