// Use this for initialization void Start() { Caching.ClearCache(); int FullPkgVer = Convert.ToInt32(BoyApp.GetTextAssetsFromResouces("pkgver")); string LocalPkgVer = BoyApp.GetTextAssetsFromPersistent("pkgver"); if (LocalPkgVer != null && Convert.ToInt32(LocalPkgVer) < FullPkgVer) { Caching.ClearCache(); File.Delete(Application.persistentDataPath + "/loadfileinfo.txt"); File.Delete(Application.persistentDataPath + "/loadfilever.txt"); File.Delete(Application.persistentDataPath + "/pkgver"); } if (File.Exists(Application.persistentDataPath + "/loadfileinfo.txt")) { BoyApp.localFileInfo = (Dictionary <string, string>)JsonConvert.DeserializeObject(File.ReadAllText(Application.persistentDataPath + "/loadfileinfo.txt"), typeof(Dictionary <string, string>)); } if (File.Exists(Application.persistentDataPath + "/loadfilever.txt")) { BoyApp.localFileVer = (Dictionary <string, int>)JsonConvert.DeserializeObject(File.ReadAllText(Application.persistentDataPath + "/loadfilever.txt"), typeof(Dictionary <string, int>)); } StartCoroutine(LoadAssetBundleManifest()); }
static int _m_GetTextAssetsFromResouces_xlua_st_(RealStatePtr L) { try { { string name = LuaAPI.lua_tostring(L, 1); string __cl_gen_ret = BoyApp.GetTextAssetsFromResouces(name); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }