Exemple #1
0
 protected override void OnSaveToLocal()
 {
     base.OnSaveToLocal();
     if (www != null)
     {
         ESFile.SaveRaw(www.bytes, cacheName);
     }
 }
Exemple #2
0
        protected override void SaveLocalCache(Texture2D value)
        {
            TextureCache cache = new TextureCache();

            cache.Init(value);
            _cacheDataConfig.Value = cache.Config;
            if (jpg)
            {
                ESFile.SaveRaw(cache.Bytes, CacheName + ".jpg");
            }
            else
            {
                ESFile.SaveRaw(cache.Bytes, CacheName + ".png");
            }
        }
 protected override void SaveLocalCache(byte[] value)
 {
     ESFile.SaveRaw(value, fileName);
 }