Beispiel #1
0
 static UAssetBundlePool GetInstance()
 {
     if (Instance == null)
     {
         Instance = new UAssetBundlePool();
     }
     return(Instance);
 }
Beispiel #2
0
 internal UAssetBundleManager(UAssetBundlePool _instance)
 {
     Pool            = _instance;
     ManifestManager = new UAssetBundleManifestManager();
     AsyncLoader     = new UAssetBundleAsyncLoader(this, Pool, ManifestManager);
     PathLoader      = new UAssetBundleLoaderProxyManager(new UAssetBundleLoaderFromPathAdapter(AsyncLoader));
     ResLoader       = new UAssetBundleLoaderProxyManager(new UAssetBundleLoaderFromResourceAdapter(AsyncLoader));
     ProxyManagers.Add(NAME_PATH, PathLoader);
     ProxyManagers.Add(NAME_RES, ResLoader);
 }