public void Init() { _grid = new PathfindingGrid(5, 5); _grid.Fill(position => new GridNode(Tiles.Stone, position, _grid)); _grid.FillEdges((position, annotation) => new GridEdge(position, annotation)); _grid.FillVertices((position) => new GridVertex(position)); }