protected override Texture2D GetLocalCache() { byte[] bytes = null; if (jpg) { bytes = ESFile.LoadRaw(CacheName + ".jpg"); } else { bytes = ESFile.LoadRaw(CacheName + ".png"); } TextureCache cache = new TextureCache(); cache.Init(_cacheDataConfig.Value, bytes); return(cache.GetTexture2D()); }
protected override byte[] GetLocalCache() { return(ESFile.LoadRaw(fileName)); }