private void FixedUpdate()
        {
            if (!ENetClient.IsConnected())
            {
                return;
            }

            SceneManager.LoadScene("Account Management");
        }
        private IEnumerator AnimateDots()
        {
            int i = 0;

            while (!ENetClient.IsConnected())
            {
                // Animate connecting text
                Text.text = message + dots[i++ % dots.Length];
                yield return(new WaitForSeconds(0.5f));
            }
        }
Beispiel #3
0
        private IEnumerator ENetConnect()
        {
            while (!ENetClient.IsConnected())
            {
                if (!ConnectingENet)
                {
                    StopCoroutine(animateDots);
                    yield break;
                }

                yield return(new WaitForSeconds(0.1f));
            }

            StopCoroutine(animateDots);
            SceneManager.LoadScene("Account");
        }