コード例 #1
0
            protected override void OnLoad()
            {
                IsLoad = false;
                var FullPath = GetInternalAssetPath();

                if (!File.Exists(FullPath))
                {
                    LLogger.LWarning($"Load AssetInternal : {FullPath} Failed");
                }
                else
                {
                    RefCount_ = 0;
                    IsLoad    = true;
                    Buffer    = File.ReadAllBytes(FullPath);
                    Asset_    = new AssetInternalTextAsset(Buffer);
                }
            }
コード例 #2
0
 public DataAssetInternalCache(AssetCacheType BundleType, string AssetPath)
     : base(BundleType, AssetPath)
 {
     Buffer = null;
     Asset_ = null;
 }