public void DisplayPath()
    {
        NodeComponent currentNode = End;

        while (currentNode != null)
        {
            ChangeTileToColor(currentNode, Color.green);
            currentNode = currentNode.GetNodeParent();
        }
    }
    public List <Vector3> GetPath()
    {
        List <Vector3> path        = new List <Vector3>();
        NodeComponent  currentNode = End;

        while (currentNode != null)
        {
            path.Add(currentNode.transform.position);
            currentNode = currentNode.GetNodeParent();
        }

        path.Reverse();
        return(path);
    }