public static void LoadConfigFromServerSync(string url, System.Action <AssetConfig> result) { AssetVersion version = null; AssetbundleConfig abconfig = null; PreloadConfig preload = null; LoadAssetversionFromServer(url + "/assetVersion.con", _ => version = _); LoadBundleFromServer(url + "bundle.con", _ => abconfig = _); LoadPreloadFromServer(url + "preload.con", _ => preload = _); result(new AssetConfig("", version, abconfig, preload)); }
public AssetConfig(string gamename, AssetVersion aversion, AssetbundleConfig abconfig, PreloadConfig preloadConfig) { this.gName = gamename; this.assetVersion = aversion; this.abConfig = abconfig; this.preloadConfig = preloadConfig; }
public static void LoadPreloadFromServer(string url, System.Action <PreloadConfig> result) { App.Ins.AppMono.StartCoroutine(downloadFile(url, _ => { result(PreloadConfig.FromString(_)); })); }