public Connections(ConnectionPoints inPoint, ConnectionPoints outPoint, Action <Connections> OnClickRemoveConnection) { this.inPoint = inPoint; this.outPoint = outPoint; inPoint.node.inPointNode = outPoint.node; outPoint.node.outPointNode = inPoint.node; this.OnClickRemoveConnection = OnClickRemoveConnection; }
public DialogNode(Vector2 position, float width, float height, GUIStyle nodeStyle, GUIStyle selectedStyle, GUIStyle inPointStyle, GUIStyle outPointStyle, Action <ConnectionPoints> OnClickInPoint, Action <ConnectionPoints> OnClickOutPoint, bool isRoot, Action <DialogNode> OnClickRemoveNode, string id) : base(position, width, height, nodeStyle, selectedStyle, inPointStyle, outPointStyle) { inPoint = new ConnectionPoints(this, ConnectionPointType.In, inPointStyle, OnClickInPoint); nodeID = id; this.isRoot = isRoot; OnRemoveNode = OnClickRemoveNode; outPoint = new ConnectionPoints(this, ConnectionPointType.Out, outPointStyle, OnClickOutPoint); }
public DialogNode(Vector2 position, float width, float height, GUIStyle nodeStyle, GUIStyle selectedStyle, GUIStyle inPointStyle, GUIStyle outPointStyle, Action <ConnectionPoints> OnClickInPoint, Action <ConnectionPoints> OnClickOutPoint, string inPointID, string outPointID, bool isRoot, Action <DialogNode> OnClickRemoveNode, string id, string cs) { rect = new Rect(position.x, position.y, width, height); style = nodeStyle; nodeID = id; this.isRoot = isRoot; conversationText = cs; OnRemoveNode = OnClickRemoveNode; inPoint = new ConnectionPoints(this, ConnectionPointType.In, inPointStyle, OnClickInPoint, inPointID); outPoint = new ConnectionPoints(this, ConnectionPointType.Out, outPointStyle, OnClickOutPoint, outPointID); defaultNodeStyle = nodeStyle; selectedNodeStyle = selectedStyle; }
public ConnectionStruct(ConnectionPoints inPoint, ConnectionPoints outPoint, Action <Connections> OnClickRemoveConnection) { this.inPoint = inPoint; this.outPoint = outPoint; this.OnClickRemoveConnection = OnClickRemoveConnection; }