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); }
public void BuildImmediate() { if (built) { return; } built = true; OutputMethod(Pathfinder.FindPathImmediate(Start, End, map, EstimateAggression, MoveDiognal, MaxDepthDifference, DepthCostAggression, disallowedIndexes)); }