This commit is contained in:
NathanSweet 2013-03-22 12:41:57 +01:00
parent 6e0e420e0a
commit d07321c9e7

View File

@ -27,7 +27,7 @@ package com.esotericsoftware.spine;
import com.badlogic.gdx.math.MathUtils;
/** Automatically mixes between animations as they change. */
/** Stores state for an animation and automatically mixes between animations. */
public class AnimationState {
private final AnimationStateData data;
Animation current, previous;
@ -88,6 +88,10 @@ public class AnimationState {
return currentTime;
}
public void setTime (float time) {
currentTime = time;
}
public AnimationStateData getData () {
return data;
}