Пример #1
0
    IEnumerator UpdateHostsList()
    {
        while (refreshHostList)
        {
            MasterServerUtils.RequestHostList();
            hosts        = MasterServerUtils.ListHost();
            hostsUpdated = true;

            yield return(new WaitForSeconds(refreshHostListFrequency));
        }
    }
Пример #2
0
 void Awake()
 {
     //Request the list as soon we're able to, so it's ready to display
     MasterServerUtils.RequestHostList();
 }