feat(): 大量更新

This commit is contained in:
2025-10-15 21:31:13 +08:00
parent 546f08c53a
commit 668bfe12eb
178 changed files with 11318 additions and 446 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
namespace Gameplay
{
// 从Resources文件夹加载卡牌数据的静态类
public static class CardLoader
{
public static CardData GetCardDataByID(int cardID)
{
CardData[] allCards = Resources.LoadAll<CardData>("Configs/Card");
foreach (var card in allCards)
{
if (card.CardID == cardID)
{
return card;
}
}
Debug.LogError($"Card with ID {cardID} not found!");
return null;
}
}
}