using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TableConfig { public partial class ContactConfig : ConfigBase { static List configs = null; public static ContactConfig GetConfig(string appid, int branch) { if (configs == null) { configs = Config.Instance.GetAllValues(); } ContactConfig config = null; foreach (var item in configs) { if (item.appid == appid) { if (config == null) { config = item; } else { if (item.branch == branch) { config = item; } } } } return config; } } }