Пример #1
0
 public void OnBack()
 {
     gameOver.SetActive(false);
     youWin.SetActive(false);
     if (MultiplayerSettingsHolder.GetInstance().mode == MultiplayerSettingsHolder.ConnectionMode.Client)
     {
         nnm.StopClient();
     }
     else
     {
         nnm.StopHost();
     }
     gameObject.SetActive(true);
 }
Пример #2
0
 public void Disconnect()
 {
     networkManager.StopClient();
     gameObject.SetActive(false);
 }