예제 #1
0
 private RotationCurveInterpolation.Mode GetRotationInterpolationMode(EditorCurveBinding[] curves)
 {
     if (curves == null || curves.Length == 0)
     {
         return(RotationCurveInterpolation.Mode.Undefined);
     }
     RotationCurveInterpolation.Mode modeFromCurveData = RotationCurveInterpolation.GetModeFromCurveData(curves[0]);
     for (int i = 1; i < curves.Length; i++)
     {
         RotationCurveInterpolation.Mode modeFromCurveData2 = RotationCurveInterpolation.GetModeFromCurveData(curves[i]);
         if (modeFromCurveData != modeFromCurveData2)
         {
             return(RotationCurveInterpolation.Mode.Undefined);
         }
     }
     return(modeFromCurveData);
 }
예제 #2
0
 public static RotationMode GetRotationMode(EditorCurveBinding binding)
 {
     return((RotationMode)RotationCurveInterpolation.GetModeFromCurveData(binding));
 }