2018年9月25日
摘要: 1 [Serializable]//序列化 2 public class Person 3 { 4 public string name; 5 public int age; 6 } 7 8 [Serializable]//序列化 9 public class Persons 10 { 11 public Person[] persons; 12 } ... 阅读全文
posted @ 2018-09-25 14:29 追求LPY 阅读(7510) 评论(0) 推荐(0) 编辑
摘要: void Start () { Fun2(); // Fun3(); } //第二种方案 用Json自带的JsonData类库 private void Fun2() { //{ 'Heros':[{'name':'超人','power':95},{'name':'蝙蝠侠','age... 阅读全文
posted @ 2018-09-25 14:27 追求LPY 阅读(6478) 评论(1) 推荐(0) 编辑
摘要: 1 public class Hero 2 { 3 public string name; 4 public int power; 5 6 } 7 public class Heros 8 { 9 public Hero[] heros; 10 11 } 12 13 public class ListJsonDemo : MonoBehaviour... 阅读全文
posted @ 2018-09-25 14:25 追求LPY 阅读(288) 评论(0) 推荐(0) 编辑