feat(关卡): 添加英雄数量上限机制

- 在 MissionCardComp 中添加英雄数量显示与上限控制逻辑
- 当英雄数量达到上限时禁止使用英雄卡牌
- 英雄死亡时减少当前英雄计数并刷新显示
- 添加英雄数量变化的动画反馈效果
- 移除 SingletonModuleComp 中未使用的 unlockCoin 字段
This commit is contained in:
walkpan
2026-03-25 23:04:12 +08:00
parent 7db182d9fc
commit 8a151a3922
6 changed files with 140 additions and 4 deletions

View File

@@ -69,7 +69,6 @@ export class SingletonModuleComp extends ecs.Comp {
max_mission:4,//最大关卡
coin:0,
time:15*60,//游戏时间
unlockCoin: 20,
},
scores: {
score: 0, // 基础得分