private void Connect() { if (CoopPeerStarter.Dedicated) { Debug.LogFormat("connecting to: {0}", new object[] { SteamClientDSConfig.serverAddress }); int num = SteamUser.InitiateGameConnection(SteamClientDSConfig.steamClientBlob, 2048, SteamClientDSConfig.Server.m_steamID, SteamClientDSConfig.EndPoint.Address.Packed, SteamClientDSConfig.EndPoint.Port, SteamClientDSConfig.Server.m_bSecure); CoopJoinDedicatedServerToken coopJoinDedicatedServerToken = new CoopJoinDedicatedServerToken(); coopJoinDedicatedServerToken.AdminPassword = SteamClientDSConfig.adminPassword; coopJoinDedicatedServerToken.ServerPassword = SteamClientDSConfig.password; if (num > 0) { coopJoinDedicatedServerToken.steamBlobToken = new byte[num]; for (int i = 0; i < num; i++) { coopJoinDedicatedServerToken.steamBlobToken[i] = SteamClientDSConfig.steamClientBlob[i]; } } BoltNetwork.Connect(SteamClientDSConfig.EndPoint, coopJoinDedicatedServerToken); } else { BoltNetwork.Connect(CoopLobby.Instance.Info.ServerId.ToEndPoint()); } }