public NetLogic() { // Setup and launch network service AppId = NetworkManager.instance.appID; AppVersion = NetworkManager.instance.gameVersion; AutoJoinLobby = true; // Register custom type handlers StreamCustomTypes.Register(); // StreamINightTypes.Register(); // Specific to Impurrishable Night #if UNITY_WEBGL Debug.Log("Using secure websockets"); this.TransportProtocol = ConnectionProtocol.WebSocketSecure; #endif if (ConnectToNameServer()) { Debug.Log("Connecting to Name Server"); } else { Debug.Log("Name server connection failed."); } }
public NetLogic() { // Setup and launch network service AppId = NetworkManager.instance.appID; AppVersion = NetworkManager.instance.gameVersion; AutoJoinLobby = true; // Register custom type handlers StreamCustomTypes.Register(); #if UNITY_WEBGL Debug.Log("Using secure websockets"); this.TransportProtocol = ConnectionProtocol.WebSocketSecure; #endif }