Ejemplo n.º 1
0
 void setButtonClick(Button button, item it)
 {
     button.onClick.RemoveAllListeners();
     button.onClick.AddListener(new UnityEngine.Events.UnityAction(() => {
         if (SellingInventory.currentlySellingItems)
         {
             SellingInventory.sell(it);
         }
         else
         {
             it.useItem();
         }
     }));
 }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }