mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[phaser] Fix control bones example.
This commit is contained in:
parent
de894957da
commit
9dbada6541
Binary file not shown.
Binary file not shown.
@ -21,7 +21,7 @@
|
||||
|
||||
create() {
|
||||
const stretchyman = this.add.spine(400, 580, 'stretchyman-data', "stretchyman-atlas");
|
||||
stretchyman.animationState.setEmptyAnimation(0, true);
|
||||
stretchyman.animationState.setAnimation(0, "idle", true);
|
||||
stretchyman.updatePose(0);
|
||||
|
||||
const controlBoneNames = ["back-arm-ik-target", "back-leg-ik-target", "front-arm-ik-target", "front-leg-ik-target"];
|
||||
|
||||
@ -183,7 +183,7 @@ export class SpineGameObject extends ComputedSizeMixin(DepthMixin(FlipMixin(Scro
|
||||
|
||||
preUpdate (time: number, delta: number) {
|
||||
if (!this.skeleton || !this.animationState) return;
|
||||
this.updatePose();
|
||||
this.updatePose(delta);
|
||||
}
|
||||
|
||||
preDestroy () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user