public static PathInterpolatorBounds GetClosestBounds(float position, PathInterpolatorBounds a, PathInterpolatorBounds b) { float d_a = Mathf.Abs(position - a.Position.Position); float d_b = Mathf.Abs(position - b.Position.Position); return(d_a < d_b ? a : b); }
static void DrawGizmo(PathInterpolatorBounds pathInterpolatorBounds, GizmoType gizmoType) { pathInterpolatorBounds.DrawGizmo(Color.white); }