feat: 新增英雄出售功能并优化UI交互

- 在 Hero 类中添加 removeByEid 静态方法,用于安全移除英雄实体
- 在 HInfoComp 中集成出售按钮逻辑,点击可移除对应英雄并关闭信息面板
- 为 card.prefab 和 hnode.prefab 添加召唤/出售按钮及相关UI组件
- 调整 role_controller.prefab 面板高度并禁用部分组件
- 移除未使用的 hit-flash-white 场景资源文件
- 暂时注释 CardComp 中的触摸事件绑定以进行调试
This commit is contained in:
walkpan
2026-03-28 12:04:41 +08:00
parent 47b8aeb789
commit a638f473a0
9 changed files with 753 additions and 1623 deletions

View File

@@ -11739,7 +11739,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 500
"height": 450
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -11834,7 +11834,7 @@
"node": {
"__id__": 70
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 570
},