//-------------------------------------------------------- // [Author]: YYL // [ Date ]: 2025年8月5日 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class HeroTalentConfig : ConfigBase { static HeroTalentConfig() { // 访问过静态构造函数 visit = true; } public int TalentID; public string Name; public int Quality; public int AttrID; public int AttrValue; 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 TalentID); Name = tables[1]; int.TryParse(tables[2],out Quality); int.TryParse(tables[3],out AttrID); int.TryParse(tables[4],out AttrValue); } catch (Exception exception) { Debug.LogError(exception); } } }