updateSpellCard()

Found in:

public void updateSpellCard(ItemSpellScriptableObject fromList){
    spell = fromList;
    type = "spell";
    gameObject.transform.Find("background").GetComponent().sprite = cardTemplate.GetImage(spell.created.element.ToString(), "background");
    gameObject.transform.Find("background").GetComponent().color = new Color32(255,255,255,255);
    gameObject.transform.Find("Text").GetComponent().color = new Color32(242, 242, 190, 255);
    gameObject.transform.Find("Text").GetComponent().text = spell.created.title;
    empty = false;
  }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *