private static Dictionary <string, ResourceItem> m_resourceItemDic = new Dictionary <string, ResourceItem>(); //资源缓存字典 public static void Init(Action callBack) { //注册update,处理多个资源并行加载的情况 GlobalDelegate.Instance.View.OnUpdate += OnUpdate; m_loadMode = ELoadMode.AssetBundle; LoadAssetBundleManifest(callBack); }
public BundleInfo(PatchBundle patchBundle, ELoadMode loadMode) { _patchBundle = patchBundle; LoadMode = loadMode; BundleName = patchBundle.BundleName; RemoteMainURL = string.Empty; RemoteFallbackURL = string.Empty; EditorAssetPath = string.Empty; Error = string.Empty; }
public BundleInfo(string error) { _patchBundle = null; LoadMode = ELoadMode.None; BundleName = string.Empty; RemoteMainURL = string.Empty; RemoteFallbackURL = string.Empty; EditorAssetPath = string.Empty; Error = error; }
public static void Init(Action callBack) { //注册update,处理多个资源并行加载的情况 GlobalDelegate.Instance.View.OnUpdate += OnUpdate; m_loadMode = ELoadMode.AssetBundle; LoadAssetBundleManifest(callBack); }