示例#1
0
    void ShowSearchColors(GridVisualisation gridvisualisation)
    {
        if (gridvisualisation == null)
        {
            return;
        }

        if (openList != null)
        {
            gridvisualisation.ColorNodes(openList.ToList(), openListColor);
        }

        if (closedList != null)
        {
            gridvisualisation.ColorNodes(closedList, closedListColor);
        }
    }
示例#2
0
    void ShowPathColors(GridVisualisation gridvisualisation)
    {
        if (gridvisualisation == null)
        {
            return;
        }

        if (pathList != null && pathList.Count > 0)
        {
            gridvisualisation.ColorNodes(pathList, pathListColor);
        }
    }