示例#1
0
 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);
 }
示例#2
0
 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);
 }
示例#3
0
        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);
            }
        }
示例#4
0
 public override void Rebuild(List <NodeConnectionPoint> iConnectionPoint)
 {
     OutputPoint = iConnectionPoint[0];
     OutputPoint.Rebuild(this, NodeConnectionPointType.Out, Editor.OnClickOutPoint);
 }
示例#5
0
 public NodeConnection(NodeConnectionPoint iInPoint, NodeConnectionPoint iOutPoint, Action <NodeConnection> OnClickRemoveConnection)
 {
     this.InPoint  = iInPoint;
     this.OutPoint = iOutPoint;
     this.OnClickRemoveConnection = OnClickRemoveConnection;
 }