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