public Node(int _x, int _y) { x = _x; y = _y; if (!WorldData.ContainsTile(x, y)) { intraversable = true; } else { Tile tile = WorldData.GetTile(x, y); if (tile != null && tile.type != 0) { intraversable = true; } } }