SHARE
TWEET

Untitled

a guest Jan 24th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class CardDisplaySorcery : MonoBehaviour
  7. {
  8.  
  9.     public Card2 card;
  10.     public Text nameText;
  11.     public Text descriptionText;
  12.     public Image artworkImage;
  13.     public Text manaText;
  14.  
  15.     void Start()
  16.     {
  17.         nameText.text = card.name;
  18.         descriptionText.text = card.description;
  19.         artworkImage.sprite = card.artwork;
  20.         manaText.text = card.manaCost.ToString();
  21.     }
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top