Exemple #1
0
        public override bool Equals(object obj)
        {
            DijkstraNode other = obj as DijkstraNode;

            return(other != null && other.Point.Equals(this.Point));
        }
Exemple #2
0
 public DijkstraNode(Vector2Int _point, DijkstraNode _parent = null, int _g = 0)
 {
     point  = _point;
     parent = _parent;
     g      = _g + (parent != null ? point.DistanceEstimate(parent.Point) : 0);
 }