Example #1
0
 public PathNode(GridPF grid, int x, int y)
 {
     this.grid  = grid;
     this.x     = x;
     this.y     = y;
     isWalkable = true;
 }
Example #2
0
    private List <PathNode> closedList; //already searched nodes

    public PathFinding(int width, int height, float cellSize, Vector3 originPosition)
    {
        Instance = this;
        grid     = new GridPF(width, height, cellSize, originPosition);
    }