public void LoadByteFileInfoList() { _ByteInfoData = new ByteFileInfoList(); AssetBundle tinfobundle = AssetBundle.LoadFromFile(GetFullPath(byteFileInfoFileName)); if (tinfobundle != null) { TextAsset tass = tinfobundle.LoadAsset <TextAsset>(byteFileInfoFileName); if (tass != null) { _ByteInfoData.Load(tass.bytes); } tinfobundle.Unload(false); } }
List <ByteFileInfo> GetUpdateList() { List <ByteFileInfo> ret = null; var tinfo = new ByteFileInfoList(); string tfilePath = GameCore.CombinePath(GameCore.PersistentResDataPath, GetCheckFileName()); if (File.Exists(tfilePath)) { AssetBundle tinfobundle = AssetBundle.LoadFromFile(tfilePath); if (tinfobundle != null) { TextAsset tass = tinfobundle.LoadAsset <TextAsset>(LoaderManager.byteFileInfoFileName); if (tass != null) { tinfo.Load(tass.bytes); } tinfobundle.Unload(false); } } ret = LoaderManager.ByteInfoData.Comparison(tinfo); return(ret); }