public static void Reload() { if (_asserBundleManifest == null) { AssetBundle manifestBundle = FileEncrypt.LoadFromFile(Application.streamingAssetsPath + "/" + SGK.PatchManager.GetPlatformName(), out manifestBundleFileStream); if (manifestBundle != null) { _asserBundleManifest = manifestBundle.LoadAsset <AssetBundleManifest>("AssetBundleManifest"); } } root = new AssetBundleInfo("", false); if (_asserBundleManifest == null) { return; } string[] bundles = _asserBundleManifest.GetAllAssetBundles(); for (int i = 0; i < bundles.Length; i++) { string[] keys = bundles[i].Split('/'); AssetBundleInfo parent = root; for (int j = 0; j < keys.Length; j++) { parent = parent.Add(keys[j], j == (keys.Length - 1)); } } }
public bool loadAssetBundle() { if (Asset == null) { Asset = FileEncrypt.LoadFromFile(FullName, out fileStream); mAssets = new Dictionary <string, Object>(); mAsyncs = new Dictionary <string, List <System.Action <Object> > >(); } return(Asset != null); }