feat(关卡): 添加英雄数量上限机制
- 在 MissionCardComp 中添加英雄数量显示与上限控制逻辑 - 当英雄数量达到上限时禁止使用英雄卡牌 - 英雄死亡时减少当前英雄计数并刷新显示 - 添加英雄数量变化的动画反馈效果 - 移除 SingletonModuleComp 中未使用的 unlockCoin 字段
This commit is contained in:
@@ -69,7 +69,6 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
max_mission:4,//最大关卡
|
||||
coin:0,
|
||||
time:15*60,//游戏时间
|
||||
unlockCoin: 20,
|
||||
},
|
||||
scores: {
|
||||
score: 0, // 基础得分
|
||||
|
||||
Reference in New Issue
Block a user