public Path(EntityPathable entity, IEnumerable <PathWaypoint> waypoints, bool doesLoop, bool continueTryingWhenFailed) { this.Entity = entity; this.doesLoop = doesLoop; this.continueTryingWhenFailed = continueTryingWhenFailed; this.waypoints.AddRange(waypoints); }
public Path(EntityPathable entity, PathWaypoint goal, bool doesLoop, bool continueTryingWhenFailed) : this(entity, new[] { goal }, doesLoop, continueTryingWhenFailed) { }