Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
799 B
1
Indexable
Never
public class CardDisplay : MonoBehaviour
{
    public Card card;

    public TextMeshProUGUI nameText;
    public TextMeshProUGUI manaText;
    public TextMeshProUGUI attackText;
    public TextMeshProUGUI healthText;
    public TextMeshProUGUI descriptionText;
    public Image artworkImage;
    public Abilities abilities;
    public GameObject cardBackImage;
    public bool isCardBackActive;




    void Start()
    {
        if (card != null)
        {
            nameText.text = card.cardname;
            manaText.text = card.cost.ToString();
            healthText.text = card.health.ToString();
            attackText.text = card.attack.ToString();
            artworkImage.sprite = card.artworkImage;
            abilities = card.abilities;
        }
    }
}