public override BaseNode Duplicate(int index) { Vector2 pos = new Vector2(rect.x + 25, rect.y + 25); Debug.Log(inPoint); MapNode copy = new MapNode(pos, rect.width, rect.height, style, selectedNodeStyle, inPoint.style, outPoint.style, inPoint.OnClickConnectionPoint, outPoint.OnClickConnectionPoint, OnRemoveNode, OnDuplicateNode, index); copy.Locale = Locale; copy.Hour = Hour; copy.Day = Day; copy.Length = Length; copy.Locks = Locks.ConvertAll(book => new ProgressPoint(book)); copy.PeoplePresent = new List <string>(PeoplePresent); copy.OrganizeLines(); copy.ChangeColor(NodeColor); copy.ID = index; return(copy); }