UpdateComboCard()

Found in:

public void UpdateComboCard(ComboScriptableObject comboS){
    currCombo = comboS;
    type = "inventory";
    gameObject.transform.Find("background").GetComponent().sprite = cardTemplate.GetImage(comboS.comboElement.ToString(), type);
    gameObject.transform.Find("background").GetComponent().color = new Color32(255,255,255,255);
    gameObject.transform.Find("Text").GetComponent().color = new Color32(67, 31, 0, 255);
    gameObject.transform.Find("Text").GetComponent().text = comboS.title;
    comboCardInUse = true;
    empty = false;
  }


Comments

Leave a Reply

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