Exemplo n.º 1
0
 public void CreateRoom(string roomName, int maxPlayers, bool hasPassword, string password)
 {
     lobbyClient.CreateRoom(roomName, maxPlayers, hasPassword, password);
     gameServer = gameObject.AddComponent <GameServer>();
     gameServer.ListeningPort = gameServerPort;
     gameServer.UpdateRate    = gameServerUpdateRate;
     gameServer.enabled       = true;
     State = NetworkState.Host;
 }