public override bool Equals(object obj) { DijkstraNode other = obj as DijkstraNode; return(other != null && other.Point.Equals(this.Point)); }
public DijkstraNode(Vector2Int _point, DijkstraNode _parent = null, int _g = 0) { point = _point; parent = _parent; g = _g + (parent != null ? point.DistanceEstimate(parent.Point) : 0); }