示例#1
0
    public Color GetColor(string key, Color def)
    {
        Color cr = def;

        if (JsonUtil.ContainsKey(rootJson, key))
        {
            string str = (string)rootJson[key];
            cr = Common.RGBString2ColorA(str);
        }
        else
        {
            Debug.Log("ColorConfig ContainsKey no key =" + key);
        }
        return(cr);
    }
示例#2
0
 public bool IsHasBoard(string key)
 {
     return(JsonUtil.ContainsKey(rootJson, GetBoardKey(key)));
 }
示例#3
0
 static public bool JsonDataContainsKey(JsonData data, string key)
 {
     return(JsonUtil.ContainsKey(data, key));
 }
示例#4
0
 public bool IsHasKey(string key)
 {
     return(JsonUtil.ContainsKey(rootJson, key));
 }