refactor(map): 优化英雄节点左右移动逻辑
- 调整moveHeroesLeft方法,动画开始前销毁第6个英雄节点,避免重复渲染 - 实现英雄节点向左平滑移动,使用Tween过渡动画 - 延迟重排英雄节点数组,确保动画完成后数组正确更新 - 调整moveHeroesRight方法,动画开始前销毁第0个英雄节点,避免重复渲染 - 实现英雄节点向右平滑移动,使用Tween过渡动画 - 延迟重排英雄节点数组,确保动画完成后数组正确更新 - 移除close方法中无用的节点移除逻辑,改用reset方法销毁节点 - 更新prefab中部分控件位置和尺寸,微调界面布局样式
This commit is contained in:
@@ -180,7 +180,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -300,
|
||||
"x": -276.526,
|
||||
"y": 1130,
|
||||
"z": 0
|
||||
},
|
||||
@@ -230,7 +230,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 14.894,
|
||||
"x": 0,
|
||||
"y": -5,
|
||||
"z": 0
|
||||
},
|
||||
@@ -369,7 +369,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -21.369,
|
||||
"x": -30.654,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -508,7 +508,7 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 40.92,
|
||||
"x": 24.748,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
@@ -658,8 +658,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 60
|
||||
"width": 150,
|
||||
"height": 100
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -758,9 +758,9 @@
|
||||
},
|
||||
"_alignFlags": 9,
|
||||
"_target": null,
|
||||
"_left": 10,
|
||||
"_left": 8.47399999999999,
|
||||
"_right": 20,
|
||||
"_top": 120,
|
||||
"_top": 100,
|
||||
"_bottom": 35,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
|
||||
Reference in New Issue
Block a user