/// <summary> /// Clones from one component to the other. /// </summary> /// <param name="optionsComponent">The component to clone from.</param> public void CloneFrom(PathOptionsComponent optionsComponent) { _pathingPriority = optionsComponent.pathingPriority; _usePathSmoothing = optionsComponent.usePathSmoothing; _allowCornerCutting = optionsComponent.allowCornerCutting; _preventDiagonalMoves = optionsComponent.preventDiagonalMoves; _navigateToNearestIfBlocked = optionsComponent.navigateToNearestIfBlocked; _maxEscapeCellDistanceIfOriginBlocked = optionsComponent.maxEscapeCellDistanceIfOriginBlocked; _nextNodeDistance = optionsComponent.nextNodeDistance; _requestNextWaypointDistance = optionsComponent.requestNextWaypointDistance; _announceAllNodes = optionsComponent.announceAllNodes; _replanMode = optionsComponent.replanMode; _replanInterval = optionsComponent.replanInterval; }
/// <summary> /// Clones from one component to the other. /// </summary> /// <param name="optionsComponent">The component to clone from.</param> public void CloneFrom(PathOptionsComponent optionsComponent) { _pathingPriority = optionsComponent.pathingPriority; _usePathSmoothing = optionsComponent.usePathSmoothing; _allowCornerCutting = optionsComponent.allowCornerCutting; _preventDiagonalMoves = optionsComponent.preventDiagonalMoves; _navigateToNearestIfBlocked = optionsComponent.navigateToNearestIfBlocked; _maxEscapeCellDistanceIfOriginBlocked = optionsComponent.maxEscapeCellDistanceIfOriginBlocked; _nextNodeDistance = optionsComponent.nextNodeDistance; _requestNextWaypointDistance = optionsComponent.requestNextWaypointDistance; _announceAllNodes = optionsComponent.announceAllNodes; _replanMode = optionsComponent.replanMode; _replanInterval = optionsComponent.replanInterval; }