Пример #1
0
        private void NewCharacterButtonClick()
        {
            Destroy(m_NetworkManager.gameObject);
            MyNetworkManager.Shutdown();
            Scene scene = SceneManager.GetActiveScene();

            SceneManager.LoadScene(scene.name);
        }
Пример #2
0
 private void MenuButtonClick()
 {
     Destroy(m_NetworkManager.gameObject);
     MyNetworkManager.Shutdown();
     SceneManager.LoadScene("MENU");
 }