Commit 2fb5f361 authored by 智慧's avatar 智慧

feat:将动画的起始位置改为右侧

parent 5f3df2a0
......@@ -174,7 +174,7 @@ cc.Class({
async showDragon() {
const nodeName = 'Canvas/' + this.data.animationName;
const animationNode = cc.find(nodeName);
animationNode.x = - this._frameSize.width;
animationNode.x = this._frameSize.width;
animationNode.active = true;
animationNode.scale = this._mapScaleMin;
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