Example #1
0
    public static Connection CreateConnection(ConnectionPoint outPoint, ConnectionPoint inPoint)
    {
        Connection connection = new Connection(outPoint, inPoint, OnClickRemoveConnection);

        //new Data
        NodeDataManager.CreateConnectionData(connection);
        connection_list.Add(connection);
        return(connection);
    }
Example #2
0
    private void BuildTreeConnection()
    {
        //out's child is in
        this.outPoint.node.childs.Add(this.inPoint.node);

        //out's child is in
        BaseNodeData outNodeData = NodeDataManager.Get(this.outPoint.node);
        BaseNodeData inNodeData  = NodeDataManager.Get(this.inPoint.node);

        ConnectionData connectionData = NodeDataManager.CreateConnectionData(this);

        connectionData.targetNodeId = inNodeData.id;

        outNodeData.connectionList.Add(connectionData);
    }