New card UI, new visual config, new card definitions, new working editor window for authoring!
This commit is contained in:
@@ -30,7 +30,7 @@ namespace UI.CardSystem
|
||||
|
||||
// Runtime references
|
||||
private CardSystemManager _cardManager;
|
||||
private List<CardUIElement> _displayedCards = new List<CardUIElement>();
|
||||
private List<CardDisplay> _displayedCards = new List<CardDisplay>();
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -98,12 +98,13 @@ namespace UI.CardSystem
|
||||
GameObject cardObj = Instantiate(cardPrefab, albumGrid.transform);
|
||||
|
||||
// Configure the card UI with the card data
|
||||
CardUIElement cardUI = cardObj.GetComponent<CardUIElement>();
|
||||
if (cardUI != null)
|
||||
{
|
||||
cardUI.SetupCard(cardData);
|
||||
_displayedCards.Add(cardUI);
|
||||
}
|
||||
// TODO: Update this to use your actual CardDisplay component
|
||||
// CardUIElement cardUI = cardObj.GetComponent<CardUIElement>();
|
||||
// if (cardUI != null)
|
||||
// {
|
||||
// cardUI.SetupCard(cardData);
|
||||
// _displayedCards.Add(cardUI);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user