Esempio n. 1
0
    /// <summary>
    /// 点击购买
    /// </summary>
    public void OnBuyBtnClick()
    {
        if (!isItemUnlock)
        {
            StaticData.CreateToastTips(_LevelLimitText.GetComponent <Text>().text);
            return;
        }
        if (todayBuyLimit < 1)
        {
            StaticData.CreateToastTips(limitStr);
            return;
        }
        if (uiShopComponent == null)
        {
            uiShopComponent = UIComponent.GetComponentHaveExist <UIShopComponent>(UIType.UIShop);
        }
        else
        {
            if (uiShopChoiceAmount == null)
            {
                uiShopChoiceAmount = uiShopComponent._buyAmountChoice.GetComponent <UIShopChoiceAmount>();
            }
        }

        uiShopChoiceAmount.gameObject.SetActive(true);
        uiShopChoiceAmount.InitShow(curStoreDefine, isPromotion, todayBuyLimit, limitStr, iconName, shopType, this, popIconName, typeGameItem, isRightBtnDiamond);
    }