Open.Core.PackageBase.DownloadScripts C# (CSharp) Method

DownloadScripts() private method

private DownloadScripts ( System.Action callback ) : void
callback System.Action
return void
        private void DownloadScripts(Action callback)
        {
            // Setup initial conditions.
            if (!HasScriptUrls) callback();

            // Prepare the loader.
            ScriptLoader loader = CreateScriptLoader();

            // Load the script(s).
            loader.LoadComplete += delegate { callback(); };
            loader.Start();
        }