Exemple #1
0
    private void BuildConnections()
    {
        for (int y = 0; y < height; ++y)
        {
            for (int x = 0; x < width; ++x)
            {
                PathfindingNode test = nodes[x, y];

                if (test != null && !allNodes.Contains(test))
                {
                    allNodes.Add(test);
                    test.FindConnections(this);
                }
            }
        }
    }