From c5273fc6d7df5c700874d8c771f15fa03e43bc89 Mon Sep 17 00:00:00 2001 From: Fenrisul Date: Mon, 2 Feb 2015 05:44:17 -0800 Subject: [PATCH] Added GetCurveType to CSharp CurveTimeline --- spine-csharp/src/Animation.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spine-csharp/src/Animation.cs b/spine-csharp/src/Animation.cs index 49497395c..672126e43 100644 --- a/spine-csharp/src/Animation.cs +++ b/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 {