Exemplo n.º 1
0
 public void FromJSON(JSONObject obj, AdvancedList list)
 {
     this.list = list;
     obj.GetField(ref title, "title");
     obj.GetField(ref description, "description");
     obj.GetField(ref model, "model");
     obj.GetField(ref template, "template");
     obj.GetField("children", delegate(JSONObject _children)
     {
         children = new AdvancedListItemData[_children.Count];
         for (int i = 0; i < _children.Count; i++)
         {
             children[i] = new AdvancedListItemData();
             children[i].FromJSON(_children[i], list);
         }
     });
 }
Exemplo n.º 2
0
 public override void Setup(AdvancedListItemData data)
 {
     base.Setup(data);
     m_List     = data.list;
     title.text = data.title;
 }