Esempio n. 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();
                }
            }
Esempio n. 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;
            }
Esempio n. 3
0
 internal AssetInternalCreateRequest(string Path)
 {
     assetBundle = new AssetInternal(Path);
     isDone      = true;
 }
Esempio n. 4
0
 protected BaseAssetInternalCache(AssetCacheType AssetType, string AssetPath)
     : base(AssetType, AssetPath)
 {
     this.Bundle = null;
 }