Exemplo n.º 1
0
    private IEnumerator WaitForNetworkManager()
    {
        while (true)
        {
            yield return(new WaitForSeconds(0.5f));

            try
            {
                if (NetworkManager.Singleton && !NetworkManager.Singleton.IsListening)
                {
                    m_ConnectionModeButtons.SetActive(false);
                    m_CommandLineProcessor.ProcessCommandLine();
                    break;
                }
            }
            catch { }
        }
        yield return(null);
    }