Ejemplo n.º 1
0
    private List <Vector3> IntToPositionList(List <int> intList)
    {
        List <Vector3> positionsList = new List <Vector3>();

        for (int i = 0; i < intList.Count; i++)
        {
            positionsList.Add(pathfindingGrid.GetGridPoint(intList[i]).transform.position);
        }

        return(positionsList);
    }