浏览代码

[ts] Updated sack examples animation name

Davide Tantillo 1 年之前
父节点
当前提交
08121daf5e
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      spine-ts/spine-pixi/example/physics.html
  2. 2 2
      spine-ts/spine-webgl/example/physics.html

+ 2 - 2
spine-ts/spine-pixi/example/physics.html

@@ -36,8 +36,8 @@
         sack.x = window.innerWidth / 2;
         sack.y = window.innerHeight / 2 + sack.getBounds().height / 2;
 
-        // Set animation "FOA" on track 0, looped.
-        sack.state.setAnimation(0, "FOA", true);
+        // Set animation "cape-follow-example" on track 0, looped.
+        sack.state.setAnimation(0, "cape-follow-example", true);
 
         // Add the display object to the stage.
         app.stage.addChild(sack);

+ 2 - 2
spine-ts/spine-webgl/example/physics.html

@@ -45,10 +45,10 @@
 				var skeletonData = skeletonBinary.readSkeletonData(assetManager.require("assets/sack-pro.skel"));
 				this.skeleton = new spine.Skeleton(skeletonData);
 
-				// Create an AnimationState, and set the "FOA" animation in looping mode.
+				// Create an AnimationState, and set the "cape-follow-example" animation in looping mode.
 				var animationStateData = new spine.AnimationStateData(skeletonData);
 				this.animationState = new spine.AnimationState(animationStateData);
-				this.animationState.setAnimation(0, "FOA", true);
+				this.animationState.setAnimation(0, "cape-follow-example", true);
 			}
 
 			update(canvas, delta) {