//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Newtonsoft.Json; using System; using System.Collections.Generic; using UnityEngine; namespace cfg { [Serializable] public partial class FishYZ { /// /// 鱼镇id /// public int YzNumber; /// /// 鱼镇路线列表 /// public List LineList; /// /// 鱼数量 /// public int Count; public static Dictionary> dicfishYZ; public static List dicfishYZ_list; public static void Init() { } static FishYZ() { string prefabFishPath = Resources.Load("tbfishyz").text; var v = JsonConvert.DeserializeObject>(prefabFishPath); dicfishYZ = new Dictionary>(); dicfishYZ_list=new List(); foreach (var item in v) { if (item.YzNumber !=0) { dicfishYZ.Add(item.YzNumber.ToString(), item.LineList); dicfishYZ_list.Add(item.YzNumber); } } } } }