Exemple #1
0
 //BUY ITEM & UPDATE INFOS
 public void BuyItem()
 {
     if (currentItem != null && GoldScript.instance.SpendGold(currentItem.getCurrentPrice()))
     {
         currentItem.UpdateLevel();
         UpdateGeneralInfos();
         foreach (ItemShopPrefab item in ItemPool.instance.itemShopPrefabs)
         {
             item.UpdateLvlBasedItemInfos();
         }
     }
 }