예제 #1
0
    IEnumerator delayReg(string username, string pass, string imei)
    {
        if (net != null)
        {
            if (!net.connected)
            {
                StartCoroutine(net.ConnectSever());
                while (!net.connected)
                {
                    yield return(new WaitForSeconds(0.1f));

                    if (net.connected)
                    {
                        SendData.onRegister(username, pass, imei);
                    }
                }
            }
            else
            {
                SendData.onRegister(username, pass, imei);
            }
        }
    }