Exemplo n.º 1
0
 //获取P点四周为+-out_count的可以通过的点列表
 public List <Vector2Int> GetAroundFreePointList(Vector2Int basePoint, int outCount,
                                                 int[] canPassObstacleTypes,
                                                 int[] canPassTerrainTypes)
 {
     return(AStarUtil.GetAroundFreePointList(this, basePoint, outCount, canPassObstacleTypes,
                                             canPassObstacleTypes));
 }
Exemplo n.º 2
0
        public static Action Test_GetAroundFreePointList()
        {
            List <Vector2Int> list = AStarUtil.GetAroundFreePointList(new AStarMapPath(grids), new Vector2Int(2, 2), 2,
                                                                      AStarMapPathConst.Critter_Can_Pass_Obstacle_Types, AStarMapPathConst.User_Can_Pass_Terrain_Types);

            return(() => { AStarUtil.GUIShowPointList(0, 0, 9, 9, list); });
        }