mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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() {
|
create() {
|
||||||
const stretchyman = this.add.spine(400, 580, 'stretchyman-data', "stretchyman-atlas");
|
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);
|
stretchyman.updatePose(0);
|
||||||
|
|
||||||
const controlBoneNames = ["back-arm-ik-target", "back-leg-ik-target", "front-arm-ik-target", "front-leg-ik-target"];
|
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) {
|
preUpdate (time: number, delta: number) {
|
||||||
if (!this.skeleton || !this.animationState) return;
|
if (!this.skeleton || !this.animationState) return;
|
||||||
this.updatePose();
|
this.updatePose(delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
preDestroy () {
|
preDestroy () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user