protected void LoadBundleAsync(BaseBundle _bundle, string _key, System.Action <string, object> _callback, bool _retain) { AddCache(_bundle); _bundle.Load(this); AddmWaitLoadList(_bundle); CreatTaskAndStart(_key, _bundle, _callback, _retain); ActiveLoader(true); }
public override void Load(LoaderManager _loader) { string[] tdeps = _loader.GetDirectDependencies(mAssetName); if (tdeps != null) { for (int i = 0; i < tdeps.Length; i++) { string tdepassetname = tdeps[i]; BaseBundle tchile = mLoadCall(tdepassetname); mDepList.Add(tchile); } } mMainBundle = new AssetsBundleFromFile(mAssetName); mMainBundle.Load(_loader); LoadEnd(); }