void OnLoadVersionConfig(string jsonName, string json) { if (jsonName != ConfigVersion.jsonName) { return; } // new one json = ConfigBase.CheckAndReturn(json); if (null == json) { return; } ConfigVersion.FromJson(json); ConfigVersion.HasLoad = true; newMap = new Dictionary <string, int>(); foreach (ConfigVersion config in ConfigVersion.datas) { newMap.Add(config.configName, config.confVersion); } Loaded = true; foreach (string jsName in newMap.Keys) { if (HasNewVersion(jsName)) { DownloadConfig(jsName); } } }