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