示例#1
0
        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);
        }
示例#2
0
 public CachedAssetBundle(AssetBundle assetBundle, AssetBundleInfo bundleInfo, CachedAssetBundleContainer _parent)
 {
     this.AssetBundleName = assetBundle.name;
     this.assetBundle     = assetBundle;
     this.bundleInfo      = bundleInfo;
 }