//===============加载队列器===============// /**加载下一个**/ private void loadNext() { if (waitList.Count < 1) { offetPriority = MAX_OFFET_PRIORITY; isLoading = false; if (isTrace) { Log.info(this, "-loadNext() 加载器已空闲!"); } return; } else { isLoading = true; } LoadItem item = waitList[0]; string loadUrl = verMgr.getLoadUrl(item.url); if (isTrace) { Log.info(this, "-loadNext() url:" + loadUrl + " 加载开始!"); } UnityEngine.Object data = item.types != null?Resources.Load(loadUrl, item.types) : Resources.Load(loadUrl); ResPool.instance.addLoadedRes(item.url, data); callFinishBack(item.url); remove(item.url, okBackList); loadNext(); }
public UnityEngine.Object[] loadAll(string url, Type type = null) { if (StringUtils.isEmpty(url)) { return(null); } string loadUrl = versionMgr.getLoadUrl(url); return(type != null?Resources.LoadAll(loadUrl, type) : Resources.LoadAll(loadUrl)); }