static bool CheckNeighborInvalid() { return(neighbor.IsNull() || GridClosedSet.Contains(neighbor) || neighbor.Unpassable()); }
static bool CheckInvalid(GridNode gridNode) { return(gridNode.IsNull() || GridClosedSet.Contains(gridNode) || gridNode.Unpassable()); }