Exemplo n.º 1
0
 public void DisconnectFromMatch()
 {
     print("DisconnectFromMatch called");
     if (localPlayer.isServer)
     {
         networker.DisconnectHostFromMatch();
     }
     else
     {
         networker.DisconnectClientFromMatch();
     }
     multiplayerScreen.Leave();
     teamSetting.gameObject.SetActive(false);
     localPlayer = null;
     activeMatch = null;
     mainMenu.gameObject.SetActive(true);
 }