public int CompareTo(object obj) { AStarNode node = obj as AStarNode; return(EstimatedCost.CompareTo(node.EstimatedCost)); }
public void Remove(AStarNode node) { mNodes.Remove(node); //Ensure the list is sorted mNodes.Sort(); }
private static float HeuristicEstimateCost(AStarNode curNode, AStarNode goalNode) { Vector3 vecCost = curNode.Position - goalNode.Position; return(vecCost.magnitude); }
public void Push(AStarNode node) { mNodes.Add(node); mNodes.Sort(); }