Example #1
0
            public override void LoadSync()
            {
                IsLoad = false;
                var Request = CreateInternalRequestSync(AssetPath);

                if (Request == null)
                {
                    LLogger.LWarning($"Load AssetInternal : {AssetPath} Failed");
                }
                else
                {
                    RefCount_ = 0;
                    IsLoad    = true;
                    Bundle    = Request;
                    OnLoad();
                }
            }
Example #2
0
            public override IEnumerator LoadAsync()
            {
                IsLoad = false;
                var Request = CreateInternalRequestAsync(AssetPath);

                yield return(Request);

                if (!Request.isDone)
                {
                    LLogger.LWarning($"Load AssetInternal : {AssetPath} Failed");
                }
                else
                {
                    RefCount_ = 0;
                    IsLoad    = true;
                    Bundle    = Request.assetBundle;
                    OnLoad();
                }

                yield break;
            }
Example #3
0
 internal AssetInternalCreateRequest(string Path)
 {
     assetBundle = new AssetInternal(Path);
     isDone      = true;
 }
Example #4
0
 protected BaseAssetInternalCache(AssetCacheType AssetType, string AssetPath)
     : base(AssetType, AssetPath)
 {
     this.Bundle = null;
 }