public Node(GridCM <Node> grid, int x, int y, bool isWalkable) { this.grid = grid; this.x = x; this.y = y; this.isWalkable = isWalkable; }
public PathFinding(int width, int height) { originPos = GameObject.Find("originPos").transform.position; grid = new GridCM <Node>(width, height, 0.65f, originPos, (GridCM <Node> grid, int x, int y, bool isWalkable) => new Node(grid, x, y, isWalkable)); }