Exemple #1
0
 private void Awake()
 {
     if (Instance)
     {
     }
     else
     {
         Instance = this;
     }
 }
        public void SetUpValues(StoreProductSettings productSettings, Purchaser purchaser)
        {
            this.settings = productSettings;

            priceLabel.text = purchaser.GetItemPrice(productSettings.ProductId);

            productName.text    = settings.LocalisableItemNameKey; // TODO: = LocalisationSystem.GetKey (settings.LocalisableItemNameKey)
            productImage.sprite = settings.ProductImage;
            mostPopularBanner.gameObject.SetActive(settings.IsMostPopular);
            removesAdsText.SetActive(settings.RemovesAds);
            removesAdsBackground.SetActive(settings.RemovesAds);
        }