Exemplo n.º 1
0
    private void RefreshUI()
    {
        var isFree = info.free && playerShop.IsAvailableForBuying(ShopEnum.RAW_PACK_FREE, id, info.stockFree);

        freeBtn.gameObject.SetActive(isFree);
        purchaseBtn.gameObject.SetActive(!isFree);

        freeCountTxt.text   = playerShop.GetBoughtCount(ShopEnum.RAW_PACK_FREE, id).ToString() + "/" + info.stockFree;
        boughtCountTxt.text = playerShop.GetBoughtCount(ShopEnum.RAW_PACK, id).ToString();
    }
Exemplo n.º 2
0
    private void RefreshUI()
    {
        purchaseBtn.gameObject.SetActive(true);

        boughtCountTxt.text = playerShop.GetBoughtCount(ShopEnum.BUNDLE, id).ToString();
    }