//-------------------------------------------------------- // [Author]: YYL // [ Date ]: 2025年9月1日 //-------------------------------------------------------- using System.Collections.Generic; using System; using UnityEngine; using LitJson; public partial class MainChapterConfig : ConfigBase { static MainChapterConfig() { // 访问过静态构造函数 visit = true; } public int ChapterID; public string ChapterName; public string Level; public string MapBG; public int[][] DailyBootyUpperList; public string BG; 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 ChapterID); ChapterName = tables[1]; Level = tables[2]; MapBG = tables[3]; DailyBootyUpperList = JsonMapper.ToObject(tables[4].Replace("(", "[").Replace(")", "]")); BG = tables[5]; } catch (Exception exception) { Debug.LogError(exception); } } }