mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Added GetCurveType to CSharp CurveTimeline
This commit is contained in:
parent
d11b90c4e8
commit
c5273fc6d7
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user