feat(技能盒): 添加技能盒销毁事件与自动排列功能

- 新增 RemoveSkillBox 事件用于技能盒销毁时通知
- 在 SkillBoxComp 销毁时触发 RemoveSkillBox 事件
- 为 MissSkillsComp 实现技能盒槽位管理系统
- 技能盒添加时会自动分配到可用槽位
- 技能盒销毁后会自动重新排列剩余技能盒
- 调整技能盒预制体尺寸和位置以优化显示效果
This commit is contained in:
panw
2026-04-07 10:56:46 +08:00
parent d3126df601
commit 686e47b26c
5 changed files with 984 additions and 901 deletions

View File

@@ -42,6 +42,7 @@ export class SkillBoxComp extends CCComp {
oops.message.off(GameEvent.MissionEnd, this.onMissionEnd, this);
this.node.off(GameEvent.NewWave, this.onNewWave, this);
oops.message.off(GameEvent.NewWave, this.onNewWaveGlobal, this);
oops.message.dispatchEvent(GameEvent.RemoveSkillBox, this.node);
}
init(uuid: number, card_lv: number) {