Example #1
0
        IEnumerator PlayerIn()
        {
            yield return(new WaitForSeconds(1));

            if (gm == null)
            {
                gm = GameObject.Find("GM").GetComponent <GMNet>();
                StartCoroutine(PlayerIn());
            }
            else
            {
                gm.PlayerIn(gameObject);
                StartCoroutine(UpdatePath());
                StartCoroutine(enemyAlive());
            }
        }