// Update is called once per frame /// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> public ElementSerializeObject GetSerializationObject() { ElementSerializeObject element = new ElementSerializeObject(); element.position = transform.position; element.rotation = transform.rotation; element.type = type; element.isDragable = isDragable; return(element); }
public void Add(ElementSerializeObject element) { list.Add(element); }