2022-03-17 15:17:51 -07:00
|
|
|
|
using System.Collections;
|
2022-03-07 23:19:35 -08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class CardDisplay : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public CardData cardData;
|
|
|
|
|
|
|
|
|
|
public Text nameText;
|
|
|
|
|
|
|
|
|
|
public Text costText;
|
|
|
|
|
public Text attackText;
|
|
|
|
|
public Text defenseText;
|
|
|
|
|
public Text healthText;
|
|
|
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2022-03-17 15:17:51 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetCardData(CardData data)
|
|
|
|
|
{
|
|
|
|
|
cardData = data;
|
2022-03-07 23:19:35 -08:00
|
|
|
|
}
|
|
|
|
|
}
|