//-------------------------------------------------------- // [Author]: YYL // [ Date ]: 2026年1月19日 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class PresetUnlockConfig : ConfigBase { static PresetUnlockConfig() { // 访问过静态构造函数 visit = true; } public int ID; public int PresetType; public int PresetID; public int UnlockType; public int UnlockValue; public override int LoadKey(string _key) { int key = GetKey(_key); return key; } public override void LoadConfig(string input) { try { string[] tables = input.Split('\t'); int.TryParse(tables[0],out ID); int.TryParse(tables[1],out PresetType); int.TryParse(tables[2],out PresetID); int.TryParse(tables[3],out UnlockType); int.TryParse(tables[4],out UnlockValue); } catch (Exception exception) { Debug.LogError(exception); } } }