public override void GetConnections (GraphNodeDelegate del)
{
GridGraph gg = GetGridGraph (GraphIndex);
int[] neighbourOffsets = gg.neighbourOffsets;
GridNode[] nodes = gg.nodes;
for (int i=0;i<8;i++) {
if (GetConnectionInternal(i)) {
GridNode other = nodes[nodeInGridIndex + neighbourOffsets[i]];
if (other != null) del (other);
}
}
#if ASTAR_GRID_CUSTOM_CONNECTIONS
if ( connections != null ) for (int i=0;i<connections.Length;i++) del(connections[i]);
#endif
}