static public void GetDataArrayInt(JSONNode dataSet, string strkey, ref List <int> listInt, bool bClear = false) { if (bClear) { listInt.Clear(); } if (dataSet != null && dataSet[strkey] != null) { JSONArray arrData = dataSet[strkey] as JSONArray; if (arrData == null) { return; } try { for (int i = 0; i < arrData.Count; ++i) { listInt.Add(EnumData.GetInteger(arrData[i].Value)); } } catch (Exception e) { Debug.LogError(e.Message); for (int i = 0; i < arrData.Count; ++i) { Debug.LogError("Elem " + i.ToString() + " : " + arrData[i].Value); } } } }