Пример #1
0
 public void Init(string assetName, BaseAssetBundleAsyncLoader loader)
 {
     AssetName         = assetName;
     this.asset        = null;
     isOver            = false;
     assetbundleLoader = loader;
 }
Пример #2
0
 public void Init(string assetName, UnityEngine.Object asset)
 {
     AssetName         = assetName;
     this.asset        = asset;
     assetbundleLoader = null;
     isOver            = true;
 }
Пример #3
0
 public void Init(string assetName, UnityEngine.Object asset, bool isAsync = true)
 {
     this.AssetName         = assetName;
     this.asset             = asset;
     this.assetbundleLoader = null;
     this.isOver            = true;
     this.isAsync           = isAsync;
 }
Пример #4
0
 public void Init(string assetName, BaseAssetBundleAsyncLoader loader, Action <UnityEngine.Object> callBack)
 {
     AssetName         = assetName;
     this.asset        = null;
     isOver            = false;
     assetbundleLoader = loader;
     this.callBack     = callBack;
     //    UnityEngine.Debug.LogError((callBack != null) + "=====load");
 }
Пример #5
0
 public void Init(string assetName, UnityEngine.Object asset, Action <UnityEngine.Object> callBack)
 {
     AssetName         = assetName;
     this.asset        = asset;
     assetbundleLoader = null;
     isOver            = true;
     this.callBack     = callBack;
     //   UnityEngine.Debug.LogError((callBack != null) + "=====unload");
 }
Пример #6
0
 public void Init(string assetName, BaseAssetBundleAsyncLoader loader)
 {
     AssetName         = assetName;
     this.asset        = null;
     isOver            = false;
     assetbundleLoader = loader;
     if (assetbundleLoader == null)
     {
         Debug.LogError($"Loader 初始化有问题 assetbundleLoader为空");
     }
 }
Пример #7
0
        public void Init(string assetName, string assetPath, Type assetType, BaseAssetBundleAsyncLoader loader, bool isAsync = true)
        {
            AssetName = assetName;
            AssetPath = assetPath;
            AssetType = assetType;

            this.asset   = null;
            this.isAsync = isAsync;

            isOver            = false;
            assetbundleLoader = loader;
        }
Пример #8
0
        public void Init(string assetName, object asset)
        {
            AssetName = assetName;
            if (isAtlas)
            {
                this.assets = (UnityEngine.Object[])asset;
            }
            else
            {
                this.asset = (UnityEngine.Object)asset;
            }

            assetbundleLoader = null;
            isOver            = true;
        }