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