コード例 #1
0
 public override void fromJSONObject(JSONObject json)
 {
     List<JSONObject> ljo = json.list;
     if (this.l == null)
         this.l = ScriptableObject.CreateInstance<IsoUnityList>();
     else
         this.l.Clear();
     foreach (var jo in ljo)
     {
         JSONAble unserialized = JSONSerializer.UnSerialize(jo);
         this.l.Add(unserialized);
     }
 }
コード例 #2
0
    public override void fromJSONObject(JSONObject json)
    {
        List <JSONObject> ljo = json.list;

        if (this.l == null)
        {
            this.l = ScriptableObject.CreateInstance <IsoUnityList>();
        }
        else
        {
            this.l.Clear();
        }
        foreach (var jo in ljo)
        {
            JSONAble unserialized = JSONSerializer.UnSerialize(jo);
            this.l.Add(unserialized);
        }
    }