public static Action Test_GetMostLinePassPoint() { Vector2Int point = AStarUtil.GetMostLinePassPoint(new AStarMapPath(grids), new Vector2Int(0, 0), new Vector2Int(4, 4), AStarMapPathConst.Critter_Can_Pass_Obstacle_Types, AStarMapPathConst.User_Can_Pass_Terrain_Types); return(() => { AStarUtil.GUIShowPointList(0, 0, 9, 9, point); }); }
//获得两点间可通过的最远点 // can_out 是否允许通过场景外 public Vector2Int GetMostLinePassPoint(Vector2Int lp, Vector2Int tp, int[] canPassObstacleTypes, int[] canPassTerrainTypes, bool isCanOut = false) { return(AStarUtil.GetMostLinePassPoint(this, lp, tp, canPassObstacleTypes, canPassTerrainTypes, isCanOut)); }