fix(map): 调整英雄站位坐标并新增CD标签显示

1. 修正MissionHeroComp中的6个英雄占位坐标
2. 在HInfoComp中新增CD标签缓存引用并实现技能CD显示逻辑
3. 更新hnode.prefab的UI布局尺寸与元素位置适配新需求
This commit is contained in:
walkpan
2026-05-25 23:02:47 +08:00
parent 988affe2ac
commit 083cd9f195
3 changed files with 40 additions and 18 deletions

View File

@@ -55,10 +55,10 @@ export class MissionHeroComp extends CCComp {
/** 硬编码的6个英雄占位点 */
public static readonly HERO_POSITIONS: Vec3[] = [
v3(-185, BoxSet.GAME_LINE + 90, 0), // index 0 (node_index 1): Top Front
v3(-200, BoxSet.GAME_LINE + 90, 0), // index 0 (node_index 1): Top Front
v3(-170, BoxSet.GAME_LINE, 0), // index 1 (node_index 2): Mid Front
v3(-200, BoxSet.GAME_LINE - 90, 0), // index 2 (node_index 3): Bot Front
v3(-285, BoxSet.GAME_LINE + 90, 0), // index 3 (node_index 4): Top Back
v3(-300, BoxSet.GAME_LINE + 90, 0), // index 3 (node_index 4): Top Back
v3(-270, BoxSet.GAME_LINE, 0), // index 4 (node_index 5): Mid Back
v3(-300, BoxSet.GAME_LINE - 90, 0), // index 5 (node_index 6): Bot Back
];