public void SetParent(SearchNode p) { _parent = p; }
public SearchNode(Vector2Int loc, SearchNode p, int wieght) { _parent = p; _pathCost += wieght; _coord = loc; }
public SearchNode(Vector2Int loc) { _parent = null; _pathCost = 0; _coord = loc; }
public SearchNode(Vector2Int loc, SearchNode p) { _parent = p; _pathCost += p._pathCost; _coord = loc; }
public SearchNode() { _parent = null; _pathCost = -1; _coord = new Vector2Int(-1, -1); }