public static void CreateConnection(CSteamID player)
 {
     SteamNetworking.CreateP2PConnectionSocket(player,
                                               NetworkLobbyManager.instance.networkInfo.Port,
                                               NetworkLobbyManager.instance.networkInfo.TimeoutSec,
                                               true);
 }
Exemplo n.º 2
0
 public static void Join(CSteamID hostId)
 {
     if (IsHost)
     {
         return;
     }
     SteamNetworking.CreateP2PConnectionSocket(hostId, 42577, 1000, true);
     Console.WriteLine("Creating P2P connection...");
     HostUser = hostId;
     IsHost   = false;
 }