[unity] Fixed compile error introduced by commit 963da75 (moved Search() method between classes).

This commit is contained in:
Harald Csaszar 2021-05-31 11:43:14 +02:00
parent 81744da44a
commit 87b6810675

View File

@ -42,7 +42,7 @@ namespace Spine.Unity.AnimationTools {
if (time < frames[0]) return Vector2.zero;
float x, y;
int i = Animation.Search(frames, time, TranslateTimeline.ENTRIES), curveType = (int)timeline.curves[i / TranslateTimeline.ENTRIES];
int i = TranslateTimeline.Search(frames, time, TranslateTimeline.ENTRIES), curveType = (int)timeline.curves[i / TranslateTimeline.ENTRIES];
switch (curveType) {
case TranslateTimeline.LINEAR:
float before = frames[i];