public virtual void LoadJSON(string data) { layers.Clear(); var ld = JsonConvert.DeserializeObject <LDArray>(data); var datas = ld.datas; for (int i = 0; i < datas.Length; i++) { layers.Add(Layer.CreateFromJSON(datas[i])); } }
public virtual void LoadJSON(string data) { layers.Clear(); var ld = JsonConvert.DeserializeObject <LDArray>(data); var datas = ld.datas; for (int i = 0; i < datas.Length; i++) { layers.Add(Layer.CreateFromJSON(datas[i])); } }