Esempio n. 1
0
        public static Action Test_DirectFindPath()
        {
            List <Vector2Int> list = AStarMapPathUtil.DirectFindPath(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); });
        }
Esempio n. 2
0
 //先对角线查找,再直角查找
 public List <Vector2Int> DirectFindPath(Vector2Int pointA,
                                         Vector2Int pointB, int[] canPassObstacleTypes, int[] canPassTerrainTypes)
 {
     return(AStarMapPathUtil.DirectFindPath(this, pointA, pointB, canPassObstacleTypes,
                                            canPassTerrainTypes));
 }