Commit 26ad3959 authored by 范雪寒's avatar 范雪寒

feat:

parent 0155fb23
......@@ -205,7 +205,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.dragonDisplay.timeScale = jumpFrame;
this.dragonDisplay.armatureName = this.dragonDisplay.getArmatureNames()[0];
const animationName = this.dragonDisplay.getAnimationNames()[0];
const animationName = this.dragonDisplay.getAnimationNames(this.dragonDisplay.armatureName)[0];
this.dragonDisplay.playAnimation(animationName, 1);
}
......@@ -402,7 +402,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (this.animaNode) {
this.dragonDisplay.armatureName = this.dragonDisplay.getArmatureNames()[0];
const animationName = this.dragonDisplay.getAnimationNames()[0];
const animationName = this.dragonDisplay.getAnimationNames(this.dragonDisplay.armatureName)[0];
this.dragonDisplay.playAnimation(animationName, 1);
this.dragonDisplay.timeScale = 1;
......@@ -706,8 +706,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
dragonDisplay.armatureName = dragonDisplay.getArmatureNames()[0];
console.log('animationName = ' + JSON.stringify(dragonDisplay.getArmatureNames()));
const animationName = dragonDisplay.getAnimationNames()[0];
console.log('animationName = ' + JSON.stringify(dragonDisplay.getAnimationNames()));
const animationName = dragonDisplay.getAnimationNames(dragonDisplay.armatureName)[0];
console.log('animationName = ' + JSON.stringify(dragonDisplay.getAnimationNames(dragonDisplay.armatureName)));
dragonDisplay.playAnimation(animationName, 1);
dragonDisplay.timeScale = 0;
......
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