From f2df5ee770788f691b81fe550a6cd88507680bec Mon Sep 17 00:00:00 2001 From: mischa <16416509+vis2k@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:11:51 +0200 Subject: [PATCH] update component --- Assets/Mirror/Components/NetworkAnimator.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Mirror/Components/NetworkAnimator.cs b/Assets/Mirror/Components/NetworkAnimator.cs index 657c28fa2..fc5a1a0f5 100644 --- a/Assets/Mirror/Components/NetworkAnimator.cs +++ b/Assets/Mirror/Components/NetworkAnimator.cs @@ -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;