// Use this for initialization void Start() { spellCard.print(); nameText.text = spellCard.name; descriptionText.text = spellCard.description; attacktValueText.text = spellCard.attackValue.ToString(); cardImage.sprite = spellCard.cardImage; if (cardNameImage == null) { Debug.Log("cardnameimage is null"); } if (spellCard.ribbons == null) { Debug.Log("ribbons is null"); } cardNameImage.sprite = spellCard.ribbons[(int)spellCard.typeOfElement]; }