public override void Load()
        {
            base.Load();
            string[] tdeps = LoadManager.GetDirectDependencies(mAssetName);
            if (tdeps != null)
            {
                for (int i = 0; i < tdeps.Length; i++)
                {
                    BaseBundle tchile = mLoadCall(DeleteSuffixName(tdeps[i]));
                    mDepList.Add(tchile);
                }
            }

            mMainBundle = new AssetsBundleFromFile(mAssetName);
            mMainBundle.Load();

            LoadEnd();
        }
Example #2
0
        public override void Load()
        {
            string[] tdeps = LoadManager.GetDirectDependencies(mAssetName);
            mNeedLoadCount = tdeps != null ? tdeps.Length : 0;
            if (tdeps != null)
            {
                for (int i = 0; i < tdeps.Length; i++)
                {
                    string     tdepassetname = DeleteSuffixName(tdeps[i]);
                    BaseBundle tchile        = mLoadCall(tdepassetname, tdepassetname, DependencieCallBack, false);
                    if (tchile != null)
                    {
                        mDepList.Add(tchile);
                    }
                }
            }
            mMainBundle = new AssetsBundleAsyncFromFile(mAssetName, true);
            mMainBundle.Load();

            mStartLoad = true;
            Step       = StepState.BundleLoad;
        }
Example #3
0
 public override void Load()
 {
     mPathName = LoadManager.GetFullPath(mAssetName);
     mCreat    = AssetBundle.LoadFromFileAsync(mPathName);
     base.Load();
 }