//-------------------------------------------------------- // [Author]: YYL // [ Date ]: Tuesday, March 31, 2026 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class ActHeroAppearArtConfig : ConfigBase { static ActHeroAppearArtConfig() { // 访问过静态构造函数 visit = true; } public int HeroID; public int[][] HeroNameColor; public int[][] CallBubbleItems; public string EntryTitleText; public int PopInfoBgUIEffectId; public string PopInfoText; public int[] PopInfoColor; public int MainSkinID; 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 HeroID); HeroNameColor = JsonMapper.ToObject(tables[1].Replace("(", "[").Replace(")", "]")); CallBubbleItems = JsonMapper.ToObject(tables[2].Replace("(", "[").Replace(")", "]")); EntryTitleText = tables[3]; int.TryParse(tables[4],out PopInfoBgUIEffectId); PopInfoText = tables[5]; if (tables[6].Contains("[")) { PopInfoColor = JsonMapper.ToObject(tables[6]); } else { string[] PopInfoColorStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); PopInfoColor = new int[PopInfoColorStringArray.Length]; for (int i=0;i