Explorar o código

Added GetCurveType to CSharp CurveTimeline

Fenrisul %!s(int64=10) %!d(string=hai) anos
pai
achega
c5273fc6d7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      spine-csharp/src/Animation.cs

+ 3 - 0
spine-csharp/src/Animation.cs

@@ -202,6 +202,9 @@ namespace Spine {
 			float y = curves[i - 1];
 			return y + (1 - y) * (percent - x) / (1 - x); // Last point is 1,1.
 		}
+		public float GetCurveType (int frameIndex) {
+			return curves[frameIndex * BEZIER_SIZE];
+		}
 	}
 
 	public class RotateTimeline : CurveTimeline {