update component

This commit is contained in:
mischa 2024-07-11 14:11:51 +02:00
parent d8e91f3053
commit f2df5ee770

View File

@ -201,6 +201,7 @@ bool CheckAnimStateChanged(out int stateHash, out float normalizedTime, int laye
void CheckSendRate()
{
double now = NetworkTime.localTime;
double syncInterval = 1f / NetworkManager.singleton.sendRate;
if (SendMessagesAllowed && syncInterval >= 0 && now > nextSendTime)
{
nextSendTime = now + syncInterval;