2 Commits

Author SHA1 Message Date
pan
d45f370682 style: 格式化代码对齐与缩进
统一调整所有枚举、对象的代码格式,修正缩进和空格规范,移除冗余代码注释
2026-05-29 15:55:52 +08:00
pan
e7230db7ca fix(ui/mission): 修复预制体缺失的实例和覆盖配置
补充了mission.prefab中多个节点的instance和targetOverrides空值配置,修正了pool_lv_node的id错误
2026-05-29 15:48:57 +08:00
3 changed files with 60 additions and 54 deletions

View File

@@ -9241,6 +9241,8 @@
"__id__": 0
},
"fileId": "8dSJngLXdOKKAUKm8SUzrR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -9743,6 +9745,8 @@
"__id__": 0
},
"fileId": "a2T+9jtpFDK6TbGmUuF01c",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -10590,6 +10594,8 @@
"__id__": 0
},
"fileId": "87fsvXMYxN6rokxAIGrdi2",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -15243,7 +15249,7 @@
"__id__": 413
},
"pool_lv_node": {
"__id__": 400
"__id__": 387
},
"hero_num_node": {
"__id__": 435

View File

@@ -25,7 +25,7 @@ export enum FightSet {
MORE_RC = 10,//更多次数 广告获取的次数
HEARTPOS = -320,//基地位置
HERO_MAX_NUM = 6,//英雄最大数量
MERGE_MAX=5, //英雄最大等级
MERGE_MAX = 3, //英雄最大等级
MERGE_NEED = 3, //英雄升级需要的英雄数
// BACK_RANG=30,//后退范围
BACK_RANG = 30,//后退范围

View File

@@ -772,12 +772,12 @@ export class MissionCardComp extends CCComp {
label.string = `lv.${lv}`;
}
}
const widget = this.pool_lv_node.getComponent(Widget);
if (widget) widget.updateAlignment();
this.pool_lv_node.children.forEach(child => {
const childWidget = child.getComponent(Widget);
if (childWidget) childWidget.updateAlignment();
});
// const widget = this.pool_lv_node.getComponent(Widget);
// if (widget) widget.updateAlignment();
// this.pool_lv_node.children.forEach(child => {
// const childWidget = child.getComponent(Widget);
// if (childWidget) childWidget.updateAlignment();
// });
const peak = 1.2
this.playHeroNumNodePop(this.pool_lv_node, peak);
}