/// <summary> /// Shifts the Min and Max Indices to the next set for route movement /// </summary> /// <param name="valueWaypoint">Value Waypoint interface to modify</param> /// <param name="scaleDirection">Direction of shift -1, 0, 1</param> public static void Shift(IValueWaypoint valueWaypoint, float scaleDirection) { if (scaleDirection.Equals(ValueSmoothWaypointUtils.DIRECTION_FORWARD)) { ValueSmoothWaypointUtils.ShiftMinMaxIndex(valueWaypoint, valueWaypoint.nodes.Length - 1, 0, ValueSmoothWaypointUtils._CanIncrement, _Add, 0.0f); } else if (scaleDirection.Equals(ValueSmoothWaypointUtils.DIRECTION_REVERSE)) { ValueSmoothWaypointUtils.ShiftMinMaxIndex(valueWaypoint, 0, valueWaypoint.nodes.Length - 1, ValueSmoothWaypointUtils._CanDecrement, _Sub, 1.0f); } else // ValueSmoothWaypointUtils.DIRECTION_NONE { } }