feat(卡牌): 新增卡池升级消耗金币机制

- 添加 CoinAdd 游戏事件用于金币变化通知
- 新增卡池升级消耗配置 CardsUpSet 和初始金币常量 CardInitCoins
- 修改升级逻辑:检查金币是否足够,扣除相应金币后才能升级
- 更新UI显示:升级按钮显示所需金币,添加金币数量显示面板
- 禁用通知面板的动画组件以优化性能
This commit is contained in:
walkpan
2026-03-24 23:31:11 +08:00
parent 3f8c316010
commit 8ef733d559
5 changed files with 656 additions and 409 deletions

View File

@@ -583,7 +583,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
@@ -691,21 +691,13 @@
"node": {
"__id__": 1
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 31
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "4cecde51-d46d-4b20-b02e-e58f063ec56f",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "4cecde51-d46d-4b20-b02e-e58f063ec56f",
"__expectedType__": "cc.AnimationClip"
},
"_clips": [],
"_defaultClip": null,
"_id": ""
},
{

File diff suppressed because it is too large Load Diff