public void JoinRoom(Guid guid, string password) { RoomInfo roomInfo = lobbyClient.GetRoomInfo(guid); gameClient = gameObject.AddComponent <GameClient>(); gameClient.GameServerAddress = roomInfo.Host; gameClient.GameServerPort = roomInfo.Port; gameClient.enabled = true; State = NetworkState.Connecting; }