예제 #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);
        }
예제 #2
0
        public void StopClientClbk()
        {
            StopClient();
            s_Singleton.StopClient();

            if (_isMatchmaking)
            {
                StopMatchMaker();
            }

            ChangeTo(mainMenuPanel);
        }