private IsConnected ( |
||
from | ||
to | ||
return | bool |
private bool IsConnected(AFlowNode from, AFlowNode to)
{
for (int i = 0; i < to.NodeCount; ++i) {
var n = to.GetNode(i) as AFlowNode;
if (n != null) {
if (from == n || IsConnected(from, n)) {
return true;
}
}
}
return false;
}