public void RaiseDependant() { PathfinderConnection tmpConnectionA = default(PathfinderConnection); if ( DependantConnection != null ) { return; } if ( NodeA.ParentNode != NodeB.ParentNode ) { if ( NodeA.ParentNode != null && NodeB.ParentNode != null ) { tmpConnectionA = NodeA.ParentNode.FindConnection(NodeB.ParentNode); if ( tmpConnectionA == null ) { DependantConnection = new PathfinderConnection(this); DependantConnection.LinkIncrease(); DependantConnection.RaiseDependant(); } else { DependantConnection = tmpConnectionA; DependantConnection.LinkIncrease(); } } } }