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