Exemple #1
0
 public static ParseJsonUtil Instance()
 {
     if (_instance == null)
     {
         _instance = new ParseJsonUtil();
     }
     return(_instance);
 }
Exemple #2
0
    public void setup()
    {
        ItemConfig cfgInfo;
        JsonData   jd = ParseJsonUtil.Instance().ParseJsonToData(sourceName);

        for (int i = 0; i < jd.Count; i++)
        {
            cfgInfo = JsonMapper.ToObject <ItemConfig>(jd[i].ToJson());
            cfgDic.Add(cfgInfo.itemId, cfgInfo);
        }
    }