Example #1
0
        public virtual List <Vector2> FindPath(SquareGrid GRID, Vector2 ENDSLOT)
        {
            pathNodes.Clear();


            Vector2 tempStartSlot = GRID.GetSlotFromPixel(pos, Vector2.Zero);


            List <Vector2> tempPath = GRID.GetPath(tempStartSlot, ENDSLOT, true);

            if (tempPath == null || tempPath.Count == 0)
            {
            }


            return(tempPath);
        }