Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public AssetConfig(string gamename, AssetVersion aversion, AssetbundleConfig abconfig, PreloadConfig preloadConfig)
 {
     this.gName         = gamename;
     this.assetVersion  = aversion;
     this.abConfig      = abconfig;
     this.preloadConfig = preloadConfig;
 }
Ejemplo n.º 3
0
 public static void LoadPreloadFromServer(string url, System.Action <PreloadConfig> result)
 {
     App.Ins.AppMono.StartCoroutine(downloadFile(url, _ => {
         result(PreloadConfig.FromString(_));
     }));
 }