public List <CpgSaveData> Read(int chair) { if (_saveList[chair].Count != 0) { return(_saveList[chair]); } string key = SaveDataKey + chair; string valueJson = PlayerPrefs.GetString(key, ""); if (valueJson == "") { YxDebug.Log("当前本地 无吃碰杠保存数据"); return(null); } ISFSArray array = SFSArray.NewFromJsonData(valueJson); for (int i = 0; i < array.Size(); i++) { ISFSObject arrayObj = array.GetSFSObject(i); CpgSaveData data = new CpgSaveData(); data.type = (EnGroupType)arrayObj.GetInt(CpgType); data.value = arrayObj.GetIntArray(CpgValue); data.index = arrayObj.GetInt(CpgIndex); _saveList[chair].Add(data); } return(_saveList[chair]); }