新增Time/String/Array/Keyboard/Random/Object/Texture辅助类
This commit is contained in:
@@ -29,7 +29,6 @@ class AStarPathfinder {
|
||||
}
|
||||
|
||||
graph.getNeighbors(current.data).forEach(next => {
|
||||
console.log(next);
|
||||
let newCost = costSoFar.get(current.data) + graph.cost(current.data, next);
|
||||
if (!this.hasKey(costSoFar, next) || newCost < costSoFar.get(next)){
|
||||
costSoFar.set(next, newCost);
|
||||
|
||||
Reference in New Issue
Block a user