예제 #1
0
    public void Connect(SocketInput input, SocketOutput output)
    {
        var connection = new Connection()
        {
            id     = CreateId,
            input  = input,
            output = output
        };

        input.Connect(connection);
        output.Connect(connection);

        connections.Add(connection);
        input.parentNode.OnConnection(input, output);

        drawer.Add(connection.id, output.handle, input.handle);
    }