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); }
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); }