mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
change ping sending frequency to 0.5 seconds
This commit is contained in:
parent
4bbe62b90e
commit
1be238b095
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ namespace SanAndreasUnity.Net
|
|||
CheckIfIPAddressIsValid (ip);
|
||||
CheckIfPortIsValid (serverPortNumber);
|
||||
SetupNetworkManger( ip, serverPortNumber );
|
||||
Mirror.NetworkTime.PingFrequency = 0.5f; // we need more agile ping measurement
|
||||
NetworkManager.singleton.StartClient ();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue