public object Clone() { BaseNodeData clone = GetType().GetConstructor(new Type[] { }).Invoke(new object[] { }) as BaseNodeData; clone.reactivePosition.Value = reactivePosition.Value; return(clone); }
public void AddNodeWithType(Type type) { BaseNodeData node = type.GetConstructor(new Type[] { }).Invoke(new object[] { }) as BaseNodeData; AddNodeInstance(node); }
public void AddNodeInstance(BaseNodeData nodeData) { singleNodes.Add(nodeData); allNodes.Add(nodeData); }