Exemplo n.º 1
0
 private void CheckPurchasedList(PurchasedData data, int index)
 {
     if (data.list.Count > index)
     {
         UiShopItem.Purchased(data.list[index].sku, data.list[index].token, () => CheckPurchasedList(data, index + 1));
     }
     else
     {
         Game.Instance.OpenPopup <Popup_Confirm>().Setup(111062, true, false, null);
     }
 }
Exemplo n.º 2
0
    public void show(Shop shop)
    {
        deleteItems();

        gameObject.SetActive(true);

        foreach (Item item in shop.Items.getItems())
        {
            UiShopItem uiItem = Instantiate <UiShopItem>(itemPrefab, itemsContainer);
            uiItem.setItem(item);
        }
    }