Left some code commented out for easier AnimationState testing.

This commit is contained in:
NathanSweet 2016-11-29 18:15:42 +01:00
parent 6fe1e8fa68
commit b75a3ddecb

View File

@ -216,6 +216,18 @@ public class SkeletonViewer extends ApplicationAdapter {
if (ui.skinList.getSelected() != null) skeleton.setSkin(ui.skinList.getSelected());
setAnimation();
// ui.animationList.clearListeners();
// state.addListener(new AnimationState.AnimationStateAdapter() {
// public void complete (TrackEntry entry) {
// System.out.println("complete " + entry + ", " + entry.hashCode());
// System.out.println("complete " + entry + ", " + entry.hashCode());
// state.setAnimation(0, Math.random() > 0.5? "walk" : "jump", false);
// state.update(0);
// state.apply(skeleton);
// }
// });
// state.setAnimation(0, "walk", true);
}
void setAnimation () {