public Node(NodeBasedEditor editor, BehaviourNode behaviourNode, Vector2 position) { Editor = editor; BehaviourNode = behaviourNode; Rect = new Rect(position.x - defaultWidth / 2f, position.y, defaultWidth, defaultHeight); InPoint = new ConnectionPoint(this, ConnectionPointType.In, Editor.InPointStyle, Editor.OnClickInPoint, null, null); }
public CompoundNode(NodeBasedEditor editor, CompoundBehaviourNode behaviourNode, Vector2 position) : base(editor, behaviourNode, position) { BehaviourNode = behaviourNode; OutPoints = new List <ConnectionPoint>(); }
private static void OpenWindow() { NodeBasedEditor window = GetWindow <NodeBasedEditor>(); window.titleContent = new GUIContent("Node Based Editor"); }