Example #1
0
        public RealOfferPurchaser(List <ShopCardData> shopCardDatas,
                                  List <ShopInApp> shopInApps, IRewardGetter rewardGetter,
                                  SFSX2Manager sfsx2Manager)
        {
            _shopCardDatas = shopCardDatas;
            _shopInApps    = shopInApps;
            _sfsx2Manager  = sfsx2Manager;
            _rewardGetter  = rewardGetter;

            var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());

            _shopInApps.ForEach(realInApp =>
                                builder.AddProduct(realInApp.inappName, ProductType.Consumable, new IDs
            {
                { realInApp.inappName, GooglePlay.Name },
                { realInApp.inappName, AppleAppStore.Name },
            }));

            UnityPurchasing.Initialize(this, builder);
        }
Example #2
0
 public InGameOfferPurchaser(IRewardGetter rewardGetter)
 {
     _rewardGetter = rewardGetter;
 }