static void CreatePreloadInfo(string game) { PreloadConfig preload = new PreloadConfig(); string path = pathConfig_Editor + "/" + game + "/preload.config"; FileUtil.SaveFile(path, preload.ToString()); CopyToStreamingAssets(game, path); }
void initAppConfig() { string[] gs = System.Enum.GetNames(typeof(GameEnum)); APPVersion app = new APPVersion(); //AssetConfig for (int i = 0; i < gs.Length; i++) { GameVersion ver = new GameVersion(gs[i], "name:" + gs[i]); app.Add(ver); AssetVersion aver = new AssetVersion(); aver.assetVersion = 0; AssetbundleConfig abcon = new AssetbundleConfig(); abcon.AddAssetBundle("test", "has001"); PreloadConfig pre = new PreloadConfig(); FileUtil.SaveFile(path + "/" + gs[i] + "/assetVersion.config", aver.ToStr()); FileUtil.SaveFile(path + "/" + gs[i] + "/abConfig.config", abcon.ToString()); FileUtil.SaveFile(path + "/" + gs[i] + "/preloadConfig.config", pre.ToString()); } FileUtil.SaveFile(path + "/appVersion.config", app.ToString()); //appversion }