Beispiel #1
0
        public void LoadXML(string url, LoadHandler completeHandler, XMLResolverHandler resolverHandler)
        {
            LoadHelper  loadHelper = new LoadHelper(url, completeHandler, this.ErrorHandler, this.ProgressHandler, resolverHandler);
            IDownloader downloader = FactoryDownloader.GetDownloader(loadHelper);

            downloader.StartDown(loadHelper);
        }
Beispiel #2
0
        public void LoadRes(string url, LoadHandler completeHandler, LoadHandler errorHandler, LoadHandler progressHandler)
        {
            LoadHelper loadHelper = new LoadHelper(url, completeHandler, errorHandler, progressHandler);

            if (loadHelper.ExtensionName == ".xml" && loadHelper.XMLResolver == null)
            {
                Debug.LogError("加载xml文件 请使用 LoadXML方法");
            }
            IDownloader downloader = FactoryDownloader.GetDownloader(loadHelper);

            downloader.StartDown(loadHelper);
        }
Beispiel #3
0
 public void ClearSceneLibrary()
 {
     FactoryDownloader.ClearSceneLibrary();
 }
Beispiel #4
0
 public void CleanResCache(bool useGC = true)
 {
     FactoryDownloader.Clear(useGC);
 }