//-------------------------------------------------------- // [Author]: YYL // [ Date ]: 2025年8月5日 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class TreeLVConfig : ConfigBase { static TreeLVConfig() { // 访问过静态构造函数 visit = true; } public int TreeLV; public int LVUPNeedMoney; public int LVUPNeedTime; public int[] EquipColorRateList; 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 TreeLV); int.TryParse(tables[1],out LVUPNeedMoney); int.TryParse(tables[2],out LVUPNeedTime); if (tables[3].Contains("[")) { EquipColorRateList = JsonMapper.ToObject(tables[3]); } else { string[] EquipColorRateListStringArray = tables[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); EquipColorRateList = new int[EquipColorRateListStringArray.Length]; for (int i=0;i