Modified AnimComposer.setCurrentAction() to return the Action. Makes it easier

to set the speed and stuff.
This commit is contained in:
Paul Speed 2018-03-25 15:13:24 -04:00
parent 6b864f2d72
commit 7ded33051c

View File

@ -59,9 +59,10 @@ public class AnimComposer extends AbstractControl {
animClipMap.remove(anim.getName());
}
public void setCurrentAction(String name) {
public Action setCurrentAction(String name) {
currentAction = action(name);
time = 0;
return currentAction;
}
public Action action(String name) {