mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 22:10:17 +00:00
don't refresh servers from Start()
This commit is contained in:
parent
e3dc420d93
commit
0d7ac7b6b4
1 changed files with 2 additions and 5 deletions
|
@ -31,7 +31,7 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
}
|
||||
|
||||
async void Start ()
|
||||
void Start ()
|
||||
{
|
||||
// adjust rect
|
||||
float width = Mathf.Min(650, Screen.width * 0.9f);
|
||||
|
@ -40,10 +40,7 @@ namespace SanAndreasUnity.UI
|
|||
m_netDiscoveryHUD = Mirror.NetworkManager.singleton.GetComponentOrThrow<Mirror.NetworkDiscoveryHUD>();
|
||||
m_netDiscoveryHUD.connectAction = this.ConnectFromDiscovery;
|
||||
m_netDiscoveryHUD.drawGUI = false;
|
||||
|
||||
_serversFromMasterServer = await MasterServerClient.Instance.GetAllServers();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue