style: 格式化代码对齐与缩进
统一调整所有枚举、对象的代码格式,修正缩进和空格规范,移除冗余代码注释
This commit is contained in:
@@ -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,//后退范围
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user