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(); }
private void RefreshUI() { purchaseBtn.gameObject.SetActive(true); boughtCountTxt.text = playerShop.GetBoughtCount(ShopEnum.BUNDLE, id).ToString(); }