//-------------------------------------------------------- // [Author]: YYL // [ Date ]: 2025年8月22日 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class InvestConfig : ConfigBase { static InvestConfig() { // 访问过静态构造函数 visit = true; } public int id; public int type; public int needDay; public int needLV; public int needNPCID; public Dictionary award; public string info; 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 type); int.TryParse(tables[2],out needDay); int.TryParse(tables[3],out needLV); int.TryParse(tables[4],out needNPCID); award = ConfigParse.ParseIntArray2Dict(tables[5]); info = tables[6]; } catch (Exception exception) { Debug.LogError(exception); } } }