Commit 5f3df2a0 authored by 智慧's avatar 智慧

feat:解决适配问题,龙骨动画初始化等位置

parent ec0ca5b0
...@@ -174,6 +174,8 @@ cc.Class({ ...@@ -174,6 +174,8 @@ cc.Class({
async showDragon() { async showDragon() {
const nodeName = 'Canvas/' + this.data.animationName; const nodeName = 'Canvas/' + this.data.animationName;
const animationNode = cc.find(nodeName); const animationNode = cc.find(nodeName);
animationNode.x = - this._frameSize.width;
animationNode.active = true;
animationNode.scale = this._mapScaleMin; animationNode.scale = this._mapScaleMin;
await asyncTweenTo(animationNode, 0.5, { x: 0 }); await asyncTweenTo(animationNode, 0.5, { x: 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