Beispiel #1
0
        public Path(EntityPathable entity, IEnumerable <PathWaypoint> waypoints, bool doesLoop, bool continueTryingWhenFailed)
        {
            this.Entity   = entity;
            this.doesLoop = doesLoop;
            this.continueTryingWhenFailed = continueTryingWhenFailed;

            this.waypoints.AddRange(waypoints);
        }
Beispiel #2
0
 public Path(EntityPathable entity, PathWaypoint goal, bool doesLoop, bool continueTryingWhenFailed) : this(entity, new[] { goal }, doesLoop, continueTryingWhenFailed)
 {
 }