using System.Collections; using System.Collections.Generic; using UnityEngine; using Newtonsoft.Json.Linq; using System; public class ShenmiaoInfo { /// /// 新手祈愿是否已经完成 0:没有 /// public int isComNewWish { get; set; } public Dictionary activeDic = new Dictionary(); public void Initlize(JToken data) { Utils.LoadObject(data, this); this.activeDic.Clear(); JObject jactiveDic = JObject.Parse(data["activeDic"].ToString()); foreach (KeyValuePair kv in jactiveDic) { Ins_Active n = new Ins_Active(); n.Initlize(kv.Value); this.activeDic[int.Parse(kv.Key)] = n; } } }