Пример #1
0
 public Bundle GetBundle(string bundlePath, bool isMainBundle = false)
 {
     if (!this.mAllBundles.ContainsKey(bundlePath))
     {
         Bundle bundle;
         if (isMainBundle)
         {
             bundle = new MainBundle(bundlePath);
             this.mMainBundles[bundlePath] = bundle;
         }
         else
         {
             bundle = new Bundle(bundlePath);
             this.mDependBundles[bundlePath] = bundle;
         }
         this.mAllBundles[bundlePath] = bundle;
     }
     return(this.mAllBundles[bundlePath]);
 }
Пример #2
0
 public void AddRef(MainBundle hostBundle)
 {
     this.mRefCount += 1;
     this.mHostBundles[hostBundle] = hostBundle;
 }
Пример #3
0
 public void ReduceRef(MainBundle hostBundle)
 {
     this.mRefCount -= 1;
     this.mHostBundles.Remove(hostBundle);
 }
Пример #4
0
 public LoadTask(Bundle mainBundle, Bundle[] dependBundles)
 {
     mMainBundle    = (MainBundle)mainBundle;
     mDependBundles = dependBundles;
 }