Пример #1
0
 public void Init(string name, string[] dependances)
 {
     assetbundleName = name;
     isOver          = false;
     _assetprefab    = null;
     _assetprefab    = new AssetBundlePackage();
     _assetprefab.Init(name, dependances);
     _assetprefab.LoadRes();
 }
Пример #2
0
 public override void Dispose()
 {
     assetbundleName = null;
     assetbundle     = null;
     _assetprefab.Dispose();
     _assetprefab = null;
     //isOver              = false;
     Recycle(this);
 }
Пример #3
0
        //public AssetBundle GetAssetBundleCache(string assetbundleName)
        //{
        //    AssetBundleCollection target = null;
        //    if (resPackageCaching.TryGetValue(assetbundleName, out target))
        //        return target.assetBundle;
        //    return null;
        //}


        public AssetBundlePackage GetRefAssetBundleCache(string assetbundleName)
        {
            AssetBundlePackage target = null;

            if (resPackageCaching.TryGetValue(assetbundleName, out target))
            {
                return(target);
            }
            return(null);
        }
Пример #4
0
 public void AddresPackageBundleCache(string assetbundleName, AssetBundlePackage package)
 {
     resPackageCaching[assetbundleName] = package;
 }