示例#1
0
        public static Path BuildImmediate(Map map, Vector start, Vector end, float aggression, bool moveDiognal, float maxDepthDiff, float depthDiffCostMultiplier, Int2D[] disallowedIndexes)
        {
            UtilityMonoBehaviour.CreateInstance();
            Path path = new Path();

            path.Initialise(Pathfinder.FindPathImmediate(start, end, map, aggression, moveDiognal, maxDepthDiff, depthDiffCostMultiplier, disallowedIndexes));
            return(path);
        }
示例#2
0
            public void BuildImmediate()
            {
                if (built)
                {
                    return;
                }

                built = true;
                OutputMethod(Pathfinder.FindPathImmediate(Start, End, map, EstimateAggression, MoveDiognal, MaxDepthDifference, DepthCostAggression, disallowedIndexes));
            }