Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        currentNode = 0;
        StartCoroutine(HacerCambio());

        List <Node> breadthwise = PathFinding.Breadthwise(start, end);
        List <Node> depthwise   = PathFinding.Depthwise(start, end);
        List <Node> aStar       = PathFinding.AStar(start, end);

        for (int i = 0; i < breadthwise.Count; i++)
        {
            print(aStar[i].transform.name + " " + aStar[i].F);
        }
    }