using Newtonsoft.Json; using System.Collections.Generic; public class WorldMapConfigTableData : TableDataBase { public int n_StageID; public int n_StageName; public string s_StageDiorama; public string s_StageBg; public string s_StageBGM; public int n_ExtraRandombag; } public class table_WorldMapConfig : table_base { public static table_WorldMapConfig Ins; List tableDatas; protected override void Awake() { Ins = this; base.Awake(); } protected override void Start() { tableDatas = JsonConvert.DeserializeObject>(json_last); base.Start(); } public List Get_DataList() { return tableDatas; } public WorldMapConfigTableData Get_Data(int id) { return tableDatas.Find(f => f.n_StageID == id); } }