//-------------------------------------------------------- // [Author]: YYL // [ Date ]: Wednesday, April 15, 2026 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class HorseIDConfig : ConfigBase { static HorseIDConfig() { // 访问过静态构造函数 visit = true; } public int HorseID; public int UnlockWay; public int UnlockValue; public int UnlockNeedCnt; public int AttrID; 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 HorseID); int.TryParse(tables[1],out UnlockWay); int.TryParse(tables[2],out UnlockValue); int.TryParse(tables[3],out UnlockNeedCnt); int.TryParse(tables[4],out AttrID); } catch (Exception exception) { Debug.LogError(exception); } } }