public static FloodPath Construct(Vector3 start, OnPathDelegate callback = null) { FloodPath path = PathPool.GetPath <FloodPath>(); path.Setup(start, callback); return(path); }
public static FloodPath Construct(Vector3 start, [Optional, DefaultParameterValue(null)] OnPathDelegate callback) { FloodPath path = PathPool.GetPath <FloodPath>(); path.Setup(start, callback); return(path); }
public static FloodPath Construct(Vector3 start, OnPathDelegate callback = null) { FloodPath p = PathPool <FloodPath> .GetPath(); p.Setup(start, callback); return(p); }
public static FloodPath Construct(GraphNode start, OnPathDelegate callback = null) { if (start == null) { throw new ArgumentNullException("start"); } FloodPath path = PathPool <FloodPath> .GetPath(); path.Setup(start, callback); return(path); }
public static FloodPath Construct(GraphNode start, [Optional, DefaultParameterValue(null)] OnPathDelegate callback) { if (start == null) { throw new ArgumentNullException("start"); } FloodPath path = PathPool.GetPath <FloodPath>(); path.Setup(start, callback); return(path); }