void Awake() { if (AssetBundleConfig.Instance.UseAssetBundle) { DebugUtil.Log("==Res Create CachedAssetBundleContainer"); _cachedAssetBundleContainer = new CachedAssetBundleContainer(); } else { DebugUtil.Log("==Res Create CachedEditorObjectContainer"); _cachedEditorObjectContainer = new CachedEditorObjectContainer(); } GameObject unactiveObj = new GameObject(); unactiveObj.name = "UnactiveContainer"; UnactiveContainer = unactiveObj.transform; UnactiveContainer.SetParent(this.transform); unactiveObj.SetActive(false); }
public CachedAssetBundle(AssetBundle assetBundle, AssetBundleInfo bundleInfo, CachedAssetBundleContainer _parent) { this.AssetBundleName = assetBundle.name; this.assetBundle = assetBundle; this.bundleInfo = bundleInfo; }