Commit 7445dad2 authored by 范雪寒's avatar 范雪寒

feat:

parent 03da6730
......@@ -398,8 +398,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
startAnim() {
if (this.animaNode) {
this.dragonDisplay.armatureName = this.dragonDisplay.getArmatureNames()[0];
const animationName = this.dragonDisplay.getAnimationNames()[0];
this.dragonDisplay.playAnimation(this.animaNode.animationNames[0], 1);
this.dragonDisplay.playAnimation(animationName, 1);
this.dragonDisplay.timeScale = 1;
}
......
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