示例#1
0
    public async void ScrollCellIndex(int idx)
    {
        Initial();
        uiRechargeComponent = UIComponent.GetComponentHaveExist <UIRechargeComponent>(UIType.UIRecharge);
        curGoldConfig       = uiRechargeComponent.listGoldConfig[idx];
        _itemAmountText.GetComponent <Text>().text = "x" + curGoldConfig.GoodsNum.ToString();
        _iconImg.GetComponent <Image>().sprite     = await ABManager.GetAssetAsync <Sprite>(curGoldConfig.Icon);

        _currentPrice.GetComponent <Text>().text = curGoldConfig.GoodsPrice[0].Count.ToString();
    }
示例#2
0
    public async void ScrollCellIndex(int idx)
    {
        Initial();
        curDiamondConfig = uiRechargeComponent.listDiamondConfig[idx];
        _itemAmountText.GetComponent <Text>().text = curDiamondConfig.GoodsNum.ToString();
        _iconImg.GetComponent <Image>().sprite     = await ABManager.GetAssetAsync <Sprite>(curDiamondConfig.Icon);

        _originalPrice.GetComponent <Text>().text    = curDiamondConfig.OriginalPrice.ToString();
        _currentPriceText.GetComponent <Text>().text = curDiamondConfig.FirstPrice.ToString();
        _firstCharge.gameObject.SetActive(StaticData.playerInfoData.userInfo.IsFirstDiscounts);
    }