public override void Init(Vector2 position) { Width = 200; Height = 100; NodeRect = new Rect(position.x, position.y, Width, Height); OutputPoint = new NodeConnectionPoint(this, NodeConnectionPointType.Out, Editor.OnClickOutPoint); }
public override void Init(Vector2 position) { Width = 300; Height = 200; NodeRect = new Rect(position.x, position.y, Width, Height); InPoint = new NodeConnectionPoint(this, NodeConnectionPointType.In, Editor.OnClickInPoint); OutPoints.Add(new NodeConnectionPoint(this, NodeConnectionPointType.Out, Editor.OnClickOutPoint)); Triggers.Add("default"); TargetPosition.Add(Vector3.zero); }
public override void Rebuild(List <NodeConnectionPoint> iConnectionPoint) { InPoint = iConnectionPoint[0]; OutPoints = iConnectionPoint.GetRange(1, iConnectionPoint.Count - 1); InPoint.Rebuild(this, NodeConnectionPointType.In, Editor.OnClickInPoint); for (int i = 0; i < OutPoints.Count; i++) { OutPoints[i].Rebuild(this, NodeConnectionPointType.Out, Editor.OnClickOutPoint); } }
public override void Rebuild(List <NodeConnectionPoint> iConnectionPoint) { OutputPoint = iConnectionPoint[0]; OutputPoint.Rebuild(this, NodeConnectionPointType.Out, Editor.OnClickOutPoint); }
public NodeConnection(NodeConnectionPoint iInPoint, NodeConnectionPoint iOutPoint, Action <NodeConnection> OnClickRemoveConnection) { this.InPoint = iInPoint; this.OutPoint = iOutPoint; this.OnClickRemoveConnection = OnClickRemoveConnection; }