Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public void assignName(string nameGiven, DeckbuildingUI ct)
 {
     deckName     = nameGiven;
     nameVis.text = nameGiven;
     controller   = ct;
 }