This commit is contained in:
j.mei7
2022-03-20 00:25:18 +01:00
parent 45b1dc2404
commit 6279eb3adb
6 changed files with 22 additions and 13 deletions

View File

@@ -15,10 +15,12 @@ public class PathNode {
public bool isWalkable;
public PathNode cameFromNode;
public PathNode(Grid<PathNode> grid, int x, int y) {
this.grid = grid;
this.x = x;
this.y = y;
public List<PathNode> neighbourList = new List<PathNode>();
public PathNode(Grid<PathNode> _grid, int _x, int _y) {
grid = _grid;
x = _x;
y = _y;
isWalkable = false;
}