Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 private void SaveClass(DataPackBase classObj)
 {
     DataPackSave.SaveData(classObj);
     //classObj.SaveData();
 }