Exemple #1
0
 public void Click(UI_GenericButton b)
 {
     if (onClick != null)
     {
         onClick(buttons.IndexOf(b));
     }
 }
Exemple #2
0
 public void Buy(UI_GenericButton b)
 {
     if (selectItem == -1)
     {
         return;
     }
     shop.Buy(selectItem, customer);
     UpdateView();
 }