//异步加载 public IEnumerator doLoad() { status = E_LoadStatus.Loading; AssetBundleCreateRequest req = AssetBundle.LoadFromFileAsync(resPath); while (!req.isDone) { yield return(new WaitForEndOfFrame()); } AssetMgr.add(new PackAsset(resName, resPath, req.assetBundle)); for (int i = 0; i < handler.Count; i++) { handler[i].Invoke(resName); } status = E_LoadStatus.Finish; }