Пример #1
0
    public void WriteData(string tabelname, List <ConfigClass> datalist)
    {
        CfgDataList cfgDataList = new CfgDataList();

        cfgDataList.WriteData(tabelname, datalist);
        dic.Add(tabelname, cfgDataList);
    }
Пример #2
0
    public void LogDataByTableName(string tablename)
    {
        CfgDataList cfg = dic[tablename];

        if (cfg == null)
        {
            Debug.LogError("配置不存在");
            return;
        }
        for (int i = 0; i < cfg.getData().Count; i++)
        {
            Debug.Log(JsonMapper.ToJson(cfg.getData()[i]));
        }
    }