mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-25 05:20:17 +00:00
also assign NetworkTransform.sendInterval when changing ped sync rate
This commit is contained in:
parent
ca44775812
commit
cc30f5ba54
2 changed files with 4 additions and 1 deletions
|
@ -527,7 +527,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0.1
|
||||
syncInterval: 0.05
|
||||
clientAuthority: 0
|
||||
sendInterval: 0.05
|
||||
syncPosition: 1
|
||||
|
|
|
@ -103,7 +103,10 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
// also change it for NetworkTransform, because it can be disabled
|
||||
if (this.NetTransform != null)
|
||||
{
|
||||
this.NetTransform.syncInterval = newSyncInterval;
|
||||
this.NetTransform.sendInterval = newSyncInterval; // one more property that we need to assign
|
||||
}
|
||||
}
|
||||
|
||||
void Update_Net()
|
||||
|
|
Loading…
Reference in a new issue