public TableBaseData GetValue(int key) { TableBaseData data = null; TableDatas.TryGetValue(key, out data); return(data); }
public bool Add(int key, TableBaseData value) { if (!TableDatas.ContainsKey(key)) { TableDatas.Add(key, value); return(true); } else { Debug.LogError("Exception Have the Same Id :" + key); return(false); } }