Пример #1
0
    IEnumerator ReturnToMainMenu()
    {
        NetworkManager.StopServer();
        Destroy(NetworkManager.gameObject);
        Debug.Log("Manager killed");
        yield return(new WaitForSeconds(5));

        SceneManager.LoadScene("MainMenu");
    }
 public void ExitLobby()
 {
     NetworkManager.StopServer();
     MainMenuCanvas.gameObject.SetActive(true);
     this.gameObject.SetActive(false);
 }