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); }
public InGameOfferPurchaser(IRewardGetter rewardGetter) { _rewardGetter = rewardGetter; }