Esempio n. 1
0
 public override void Load(LoaderManager _loader)
 {
     string[] tdeps = _loader.GetDirectDependencies(mAssetName);
     mNeedLoadCount = tdeps != null ? tdeps.Length : 0;
     if (tdeps != null)
     {
         for (int i = 0; i < tdeps.Length; i++)
         {
             string     tdepassetname = tdeps[i];
             BaseBundle tchile        = mLoadCall(tdepassetname, tdepassetname, DependencieCallBack, false);
             mDepList.Add(tchile);
         }
     }
     mMainBundle = new AssetsBundleAsyncFromFile(mAssetName);
     mMainBundle.Load(_loader);
     mStartLoad = true;
 }
Esempio n. 2
0
        public override void Load()
        {
            base.Load();
            string[] tdeps = LoaderManager.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();
        }
Esempio n. 3
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();
            }
Esempio n. 4
0
        public override void Load()
        {
            string[] tdeps = LoaderManager.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;
        }