/// <summary> /// Sets the special ad bkcg. /// </summary> /// <param name="pSprite">P sprite.</param> private void SetSpecialAdBkcg(StyleManager.BaseSprite pSprite) { mMainBckg.sprite = StyleManager.Instance.GetSprite(pSprite); if (mListImagePanel != null) { mListImagePanel.sprite = StyleManager.Instance.GetSprite(pSprite); } }
/// <summary> /// Sets the ad block. /// </summary> /// <param name="pItem">P item.</param> private void SetAdBlock(XsollaShopItem pItem) { StyleManager.BaseSprite lItemBckg = ShopItemHelper.SetAdBlockItem(pItem, mUtils, mAdPanel.GetComponentInChildren <Text>(), mAdPanel.GetComponent <Image>()); if ((lItemBckg == StyleManager.BaseSprite.bckg_item) && (mIsListLayoutItem)) { mAdPanel.SetActive(false); } SetSpecialAdBkcg(lItemBckg); }
private void SetAdBlock(XsollaPricepoint pItem) { StyleManager.BaseSprite lItemBckg = ShopItemHelper.SetAdBlockItem(pItem, mUtils, mAdPanel.GetComponentInChildren <Text>(), mAdPanel.GetComponent <Image>()); SetSpecialAdBkcg(lItemBckg); }