예제 #1
0
 public EdgeConnector(int index, int position, Rect rect, bool isHelper, NodeEditorBase node)
 {
     this.index             = index;
     this.position          = position;
     this.rect              = rect;
     this.isHelperConnector = isHelper;
     this.node              = node;
 }
예제 #2
0
        private void Update(DialogueEditorWindow editor)
        {
            _editor     = editor;
            _nodeEditor = editor.selectedNodeEditors.FirstOrDefault();
            _edge       = editor.selectedEdges.FirstOrDefault();
            _edgeDrawers.Clear();

            if (_edge != null)
            {
                _edgeDrawers = ReflectionDrawerUtility.BuildEditorHierarchy(_edge.GetType(), _edge).ToList();
            }
        }