Ejemplo n.º 1
0
    public void ReTracePath(Node start, Node end)
    {
        List <Node> path        = new List <Node>();
        Node        currentNode = end;

        // Are we there yet in reverse!
        while (currentNode != start)
        {
            path.Add(currentNode);
            currentNode = currentNode.m_Parent;
        }

        path.Reverse();

        m_Grid.ShowPath(path);
    }