Beispiel #1
0
 public PathFinder(int p_width, int p_height, float p_cellSize, Vector3 p_offset)
 {
     m_grid = new CustomGridObject <PathNode>(p_width, p_height, p_cellSize, p_offset, false, (
                                                  CustomGridObject <PathNode> p_grid, int p_x, int p_y) => new PathNode(p_grid, new Vector2Int(p_x, p_y)));
 }
 public PathNode(CustomGridObject <PathNode> p_grid, Vector2Int p_position)
 {
     Grid       = p_grid;
     m_position = p_position;
 }