refactor(map): 重构装备卡槽管理与节点挂载逻辑
1. 移除HeroBoxComp中未使用的ebars_node属性
2. 重构EBox.load方法,支持自定义父节点并更新注释
3. 重构MissEquipComp:
- 移除无用的BoxSet导入和硬编码槽位坐标
- 使用ebars_node子节点动态生成槽位
- 修改装备挂载逻辑,将装备挂载到对应ebar子节点而非直接设置位置
- 更新相关注释与日志提示
4. 调整mission.prefab的UI布局参数与绑定节点
This commit is contained in:
@@ -44,9 +44,7 @@ export class HeroBoxComp extends CCComp {
|
||||
|
||||
// ======================== 编辑器绑定节点 ========================
|
||||
|
||||
/** 装备图标节点 */
|
||||
@property({ type: Node })
|
||||
private ebars_node: Node = null;
|
||||
|
||||
|
||||
/** 英雄图标节点 */
|
||||
@property({ type: Node })
|
||||
|
||||
Reference in New Issue
Block a user