Commit 6ef4981c authored by 范雪寒's avatar 范雪寒

feat: names

parent bfa3cecd
...@@ -203,7 +203,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -203,7 +203,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
junpAnim() { junpAnim() {
const jumpFrame = this.getJumpFrame(); const jumpFrame = this.getJumpFrame();
this.dragonDisplay.timeScale = jumpFrame; this.dragonDisplay.timeScale = jumpFrame;
this.dragonDisplay.playAnimation(this.animaNode.animationNames[0], 1);
this.dragonDisplay.armatureName = this.dragonDisplay.getArmatureNames()[0];
const animationName = this.dragonDisplay.getAnimationNames()[0];
this.dragonDisplay.playAnimation(animationName, 1);
} }
getJumpFrame() { getJumpFrame() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment