Function GridNode.SetConnection

SetConnection (int dir, bool value)

Enables or disables a connection in a specified direction on the graph.

Public
void SetConnection (

int

dir

bool

value

)

Enables or disables a connection in a specified direction on the graph.

Note

This only changes the connection from this node to the other node. You may also want to call the same method on the other node with the opposite direction.