示例#1
0
 public void SetParent(SearchNode p)
 {
     _parent = p;
 }
示例#2
0
 public SearchNode(Vector2Int loc, SearchNode p, int wieght)
 {
     _parent    = p;
     _pathCost += wieght;
     _coord     = loc;
 }
示例#3
0
 public SearchNode(Vector2Int loc)
 {
     _parent   = null;
     _pathCost = 0;
     _coord    = loc;
 }
示例#4
0
 public SearchNode(Vector2Int loc, SearchNode p)
 {
     _parent    = p;
     _pathCost += p._pathCost;
     _coord     = loc;
 }
示例#5
0
 public SearchNode()
 {
     _parent   = null;
     _pathCost = -1;
     _coord    = new Vector2Int(-1, -1);
 }