public virtual BaseNode Duplicate(int index) { Vector2 pos = new Vector2(rect.x + 25, rect.y + 25); BaseNode copy = new BaseNode(pos, rect.width, rect.height, style, selectedNodeStyle, inPoint.style, outPoint.style, inPoint.OnClickConnectionPoint, outPoint.OnClickConnectionPoint, OnRemoveNode, OnDuplicateNode); copy.ChangeColor(NodeColor); copy.ID = index; return(copy); }