mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
update component
This commit is contained in:
parent
d8e91f3053
commit
f2df5ee770
@ -201,6 +201,7 @@ bool CheckAnimStateChanged(out int stateHash, out float normalizedTime, int laye
|
|||||||
void CheckSendRate()
|
void CheckSendRate()
|
||||||
{
|
{
|
||||||
double now = NetworkTime.localTime;
|
double now = NetworkTime.localTime;
|
||||||
|
double syncInterval = 1f / NetworkManager.singleton.sendRate;
|
||||||
if (SendMessagesAllowed && syncInterval >= 0 && now > nextSendTime)
|
if (SendMessagesAllowed && syncInterval >= 0 && now > nextSendTime)
|
||||||
{
|
{
|
||||||
nextSendTime = now + syncInterval;
|
nextSendTime = now + syncInterval;
|
||||||
|
Loading…
Reference in New Issue
Block a user