mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Left some code commented out for easier AnimationState testing.
This commit is contained in:
parent
6fe1e8fa68
commit
b75a3ddecb
@ -216,6 +216,18 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
|
|
||||||
if (ui.skinList.getSelected() != null) skeleton.setSkin(ui.skinList.getSelected());
|
if (ui.skinList.getSelected() != null) skeleton.setSkin(ui.skinList.getSelected());
|
||||||
setAnimation();
|
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 () {
|
void setAnimation () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user