public static ConstantPath Construct(Vector3 start, int maxGScore, OnPathDelegate callback = null) { ConstantPath path = PathPool <ConstantPath> .GetPath(); path.Setup(start, maxGScore, callback); return(path); }
public static ConstantPath Construct(Vector3 start, int maxGScore, [Optional, DefaultParameterValue(null)] OnPathDelegate callback) { ConstantPath path = PathPool.GetPath <ConstantPath>(); path.Setup(start, maxGScore, callback); return(path); }
private void PathFinishedDelegate(Path path) { if (path.error) { Error = path.errorLog; PathFailed(); return; } GeneratedPath = (ConstantPath) path; PathGenerated(); }