public void initalize(Cardmaker mk, int i, DeckbuildingUI master, DeckbuildingUI.deckType t) { cardmakerIndex = i; mkr = mk; cardBody = Instantiate(mkr.findCardTemplate(), transform); cardBody.GetComponent <CardUI>().populateSelf(mkr, true); controller = master; type = t; }
public void setCardmaker(Cardmaker c, int index, DeckbuildingUI.deckType t, DeckbuildingUI ct) { costTxt.text = c.resourceCost.ToString(); nameTxt.text = c.name; cardmakerIndex = index; type = t; controller = ct; mkr = c; GetComponent <Image>().color = c.getColor(); }
public void assignName(string nameGiven, DeckbuildingUI ct) { deckName = nameGiven; nameVis.text = nameGiven; controller = ct; }