//------------------------------------------------------ public void HandleClick() { if (tempPainelGameObject.name == "ShopContent") { scrollList.AddToCart(CreateNewitemOnShop(), buyValue); } if (tempPainelGameObject.name == "CartContent") { if (scrollList.cartList[this.slotId].amount > 1) { scrollList.cartList[this.slotId].amount--; scrollList.balance += buyValue; scrollList.UpdateBalance(); scrollList.RefreshCart(); } else { scrollList.RemoveFromCart(slotId); } } if (tempPainelGameObject.name == "PlayerContentPainel") { scrollList.PlayerSellCartPlayerToCart(tempShopPrices, sellValue, this.slotId); } if (tempPainelGameObject.name == "SellContent") { scrollList.PlayerSellCartRemoveFromSellCart(slotId); } }