using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
|
namespace TableConfig
|
{
|
|
public partial class ContactConfig : ConfigBase
|
{
|
|
static List<ContactConfig> configs = null;
|
|
public static ContactConfig GetConfig(string appid, int branch)
|
{
|
if (configs == null)
|
{
|
configs = Config.Instance.GetAllValues<ContactConfig>();
|
}
|
|
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;
|
}
|
|
}
|
|
}
|