private readonly Dictionary <string, ILoader> Loaders = new Dictionary <string, ILoader>(); //加载器 #endregion #region ----公有方法---- public ILoader GetDownloader(string loaderName, string[] urls, ResType resType, Action <bool, IRes> listener = null) { ILoader loader = GetLoader(loaderName); if (loader == null) { loader = ObjectPool <ResDownloader> .Instance.Get(); loader.Name = loaderName; Loaders.Add(loaderName, loader); loader.Add(urls, resType, listener, false); } else { loader.Add(urls, resType, listener, true); } return(loader); }