public NodeJointPoint(Rect actionRect, Vector2 offset, NodeDrawableBase parent, NodeBase target = null)
 {
     ActionRect = actionRect;
     Offset = offset;
     Target = target != null ? target.FirstJoint : null;
     TargetId = target != null ? target.Id : NodeDrawableBase.NothingId;
     ParentId = parent.Id;
     //Debug.Log("in " + parent + ", ID=" + parent.ElementName);
 }
 public NodeJointPoint(Rect actionRect, Vector2 offset, NodeDrawableBase parent, NodeBase target = null)
 {
     ActionRect = actionRect;
     Offset     = offset;
     Target     = target != null ? target.FirstJoint : null;
     TargetId   = target != null ? target.Id : NodeDrawableBase.NothingId;
     ParentId   = parent.Id;
     //Debug.Log("in " + parent + ", ID=" + parent.ElementName);
 }
 public NodeJointPoint(NodeDrawableBase parent, NodeBase target = null)
     : this(new Rect(), new Vector2(), parent, target)
 {
 }
 public NodeJointPoint ToJointPoint(NodeDrawableBase parent)
 {
     return new NodeJointPoint(actionRectProxy.ToRect(), offsetProxy.ToVector2(), parent);
 }
 public virtual NodeJointPoint CreateJointPoint(Rect actionRect, Vector2 offset, NodeDrawableBase parent, NodeBase target = null)
 {
     return(parent != null ? new NodeJointPoint(actionRect, offset, parent, target) : null);
 }
 public virtual NodeJointPoint CreateJointPoint(NodeDrawableBase parent, NodeBase target = null)
 {
     return(parent != null ? new NodeJointPoint(parent, target) : null);
 }
 public NodeJointPoint(NodeDrawableBase parent, NodeBase target = null)
     : this(new Rect(), new Vector2(), parent, target)
 {
 }
Beispiel #8
0
 public NodeJointPoint ToJointPoint(NodeDrawableBase parent)
 {
     return(new NodeJointPoint(actionRectProxy.ToRect(), offsetProxy.ToVector2(), parent));
 }