public static ParseJsonUtil Instance() { if (_instance == null) { _instance = new ParseJsonUtil(); } return(_instance); }
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); } }