refactor(map): 抽象卡牌背景颜色逻辑,简化代码

将多个文件中重复的卡池颜色切换逻辑提取为CardBgComp组件,
减少重复代码,提高可维护性
This commit is contained in:
panw
2026-05-28 09:23:01 +08:00
parent 83e9188cd4
commit f114fca2ce
7 changed files with 67 additions and 69 deletions

View File

@@ -44,10 +44,13 @@
},
{
"__id__": 196
},
{
"__id__": 198
}
],
"_prefab": {
"__id__": 198
"__id__": 200
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -4380,6 +4383,24 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "1fB2CjJqJFgo9e1LJ6EyaL"
},
{
"__type__": "d42d0cGD3NLYoBJEImijeH3",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 199
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1fQvT1A5hItJZd6AwSBLLo"
},
{
"__type__": "cc.PrefabInfo",
"root": {