Exemple #1
0
        public static Action Test_BorderFindPath()
        {
            List <Vector2Int> list = AStarMapPathUtil.BorderFindPath(new AStarMapPath(grids), new Vector2Int(1, 1),
                                                                     new Vector2Int(4, 4), AStarMapPathConst.Critter_Can_Pass_Obstacle_Types,
                                                                     AStarMapPathConst.User_Can_Pass_Terrain_Types);

            return(() => { AStarUtil.GUIShowPointList(0, 0, 9, 9, list); });
        }
Exemple #2
0
 //直角寻路(先横向再纵向寻路)
 public List <Vector2Int> BorderFindPath(Vector2Int pointA, Vector2Int pointB, int[] canPassObstacleTypes,
                                         int[] canPassTerrainTypes)
 {
     return(AStarMapPathUtil.BorderFindPath(this, pointA, pointB, canPassObstacleTypes,
                                            canPassTerrainTypes));
 }