Example #1
0
    /// <summary>
    /// Will setup webrtc and create the network object
    /// </summary>
    private void Start()
    {
        //shows the console on all platforms. for debugging only
        if (uDebugConsole)
        {
            DebugHelper.ActivateConsole();
        }
        if (uLog)
        {
            SLog.SetLogger(OnLog);
        }

        SLog.LV("Verbose log is active!");
        SLog.LD("Debug mode is active");

        Append("Setting up WebRtcNetworkFactory");
        WebRtcNetworkFactory factory = WebRtcNetworkFactory.Instance;

        if (factory != null)
        {
            Append("WebRtcNetworkFactory created");
        }
    }