Exemple #1
0
 public void Reset()     //寻路开始时清空成本和指向
 {
     _state       = AStarWithOutClosedListNodeState.unopened;
     _nextNode    = null;
     _startToCost = 0;
     _toEndCost   = 0;
     _totalCost   = 0;
 }
Exemple #2
0
 public void Open(AStarWithOutClosedListNode nextNode, Vector2 destination)
 {
     _state    = AStarWithOutClosedListNodeState.opened;
     _nextNode = nextNode;
     ComputeCost(destination);
 }
Exemple #3
0
 public void Close()
 {
     _state = AStarWithOutClosedListNodeState.closed;
 }