Example #1
0
    public TableBaseData GetValue(int key)
    {
        TableBaseData data = null;

        TableDatas.TryGetValue(key, out data);

        return(data);
    }
Example #2
0
 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);
     }
 }