//-------------------------------------------------------- // [Author]: YYL // [ Date ]: Friday, October 3, 2025 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class FirstChargeConfig : ConfigBase { static FirstChargeConfig() { // 访问过静态构造函数 visit = true; } public int FirstID; public int CTGID; public int[][] AwardListDay1; public int[][] AwardListDay2; public int[][] AwardListDay3; public int ExtraRewardTextType; public string ExtraRewardTextInfo; 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 FirstID); int.TryParse(tables[1],out CTGID); AwardListDay1 = JsonMapper.ToObject(tables[2].Replace("(", "[").Replace(")", "]")); AwardListDay2 = JsonMapper.ToObject(tables[3].Replace("(", "[").Replace(")", "]")); AwardListDay3 = JsonMapper.ToObject(tables[4].Replace("(", "[").Replace(")", "]")); int.TryParse(tables[5],out ExtraRewardTextType); ExtraRewardTextInfo = tables[6]; } catch (Exception exception) { Debug.LogError(exception); } } }