public void Load() { string dataScriptPath = Application.dataPath + DATA_PACK_DIRECT; var files = Directory.GetFiles(dataScriptPath, "*.cs"); foreach (var file in files) { string className = Path.GetFileNameWithoutExtension(file); DataPackBase obj = LoadClass(className); _DataDict.Add(className, obj); } }
private void SaveClass(DataPackBase classObj) { DataPackSave.SaveData(classObj); //classObj.SaveData(); }