Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 static void DrawGizmo(PathInterpolatorBounds pathInterpolatorBounds, GizmoType gizmoType)
 {
     pathInterpolatorBounds.DrawGizmo(Color.white);
 }