private IEnumerator EndMatch() { yield return(new WaitForSecondsRealtime(3)); lobbyManager.StopClient(); lobbyManager.StopHost(); lobbyManager.StopMatchMaker(); lobbyManager.ChangeTo(lobbyManager.gamesPanel); Cursor.visible = true; Destroy(gameObject); }
public void StopClientClbk() { StopClient(); s_Singleton.StopClient(); if (_isMatchmaking) { StopMatchMaker(); } ChangeTo(mainMenuPanel); }