public static RecordTable GetData(string RecordName) { if (s_RecordCache.ContainsKey(RecordName)) { return(s_RecordCache[RecordName]); } RecordTable record = null; string dataJson = ""; string fullPath = Utility.Path.GetCombinePath(UnityUtility.Path.PersistentDataPath, Constant.DevicePlatform.GetCurDevicePlatformPath(), c_directoryName, RecordName + "." + c_expandName); if (File.Exists(fullPath)) { dataJson = IOTool.ReadStringByFile(fullPath); } if (dataJson == "") { record = new RecordTable(); } else { record = RecordTable.Analysis(dataJson); } s_RecordCache.Add(RecordName, record); return(record); }