public void ButtonClick(){
if(type == "spell"){
cardTemplate.populateRecipe(spell);
}else if(type == "inventory"){
cardTemplate.PopulateItem(curItem, true);
}else if (comboCardInUse){
cardTemplate.PopulateCombo(currCombo, comboCardInUse);
}
cardTemplate.gameObject.SetActive(true);
}

Leave a Reply