Beispiel #1
0
 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);
 }
Beispiel #2
0
            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();
            }