using System.Collections; using System.Collections.Generic; using UnityEngine; public partial class ApkUpdateUrlConfig : IConfigPostProcess { static Dictionary> apkUpdateUrlConfigs = new Dictionary>(); public void OnConfigParseCompleted() { if (!apkUpdateUrlConfigs.ContainsKey(this.appid)) { apkUpdateUrlConfigs[this.appid] = new Dictionary(); } apkUpdateUrlConfigs[this.appid][this.branch] = this; } public static ApkUpdateUrlConfig Get(string appId, int branch) { if (apkUpdateUrlConfigs.ContainsKey(appId) && apkUpdateUrlConfigs[appId].ContainsKey(branch)) { return apkUpdateUrlConfigs[appId][branch]; } else { return null; } } }