feat(卡牌系统): 实现任务卡牌抽卡与锁定功能

- 新增 MissionCardComp 作为卡牌面板控制器,管理四个固定卡槽
- 实现抽卡按钮逻辑,根据卡池等级抽取并分发卡牌到四个槽位
- 实现卡池升级按钮,提升抽卡品质但不影响已锁定卡牌
- 新增 CardComp 作为单卡控制器,支持卡牌使用与槽位锁定功能
- 锁定状态下卡槽将跳过抽卡更新,保持原有卡牌
- 添加任务开始/结束时的卡槽清理与界面显隐控制
- 修复预制体字段缺失问题,补充 instance 和 targetOverrides 字段
This commit is contained in:
walkpan
2026-03-14 09:18:45 +08:00
parent dbe376033d
commit d0e824e93b
3 changed files with 265 additions and 43 deletions

View File

@@ -7076,6 +7076,8 @@
"__id__": 0
},
"fileId": "5aMCdIWc5OmJF+7Y1vMDAV",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7270,6 +7272,8 @@
"__id__": 0
},
"fileId": "57ozFIFb9ETJnSg6jZ4keY",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7407,6 +7411,8 @@
"__id__": 0
},
"fileId": "80R6KCqF1MUotJRCKCOAB1",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7564,6 +7570,8 @@
"__id__": 0
},
"fileId": "4b2ngPxLNPTLyKGNy8mqMw",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7645,6 +7653,8 @@
"__id__": 0
},
"fileId": "658QGyYfxEyJvkxOrsGTX4",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7802,6 +7812,8 @@
"__id__": 0
},
"fileId": "8eSy9TOKJMi4sjqRA6RoQk",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7841,6 +7853,8 @@
"__id__": 0
},
"fileId": "63FHyGP9BOaqAuH4RtPSZ0",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -7954,6 +7968,8 @@
"__id__": 0
},
"fileId": "46VgrHm5VNH5UNmq7bgAi+",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -8817,7 +8833,9 @@
"cards_chou": {
"__id__": 288
},
"cards_up": null,
"cards_up": {
"__id__": 237
},
"_id": ""
},
{