Ejemplo n.º 1
0
        private IEnumerator EndMatch()
        {
            yield return(new WaitForSecondsRealtime(3));

            lobbyManager.StopClient();
            lobbyManager.StopHost();
            lobbyManager.StopMatchMaker();
            lobbyManager.ChangeTo(lobbyManager.gamesPanel);
            Cursor.visible = true;
            Destroy(gameObject);
        }