protected override void InitStore() { //Init GOW with products Gow.Initialized += Initialized; var products = infos.Select(i => i.name).ToArray(); Gow.Init(products); }
PurchaseProcessingResult IStoreListener.ProcessPurchase(PurchaseEventArgs e) { //Report purchase to GOW Gow.ReportPurchase(e); if (PurchaseCompleted != null) { PurchaseCompleted(e); } return(PurchaseProcessingResult.Complete); }
protected override void Buy() { if (replacement != null) { //buy over GOW if its special offer product Gow.Buy(replacement); } else { //buy over GOW if its regular product Gow.Buy(info.name); } }
public void UpdateView() { if (!info) { return; } _coins.text = info.coins.ToString(); _price.text = "$" + info.price.ToString(); _icon.sprite = info.icon; _so.enabled = false; replacement = Gow.GetReplacement(info.name); if (replacement != null) { Debug.Log("Best price"); _so.enabled = true; _price.text = "$" + replacement.price.ToString("#.##"); } }
private void UnityPurchasingInitialized() { //Init Gow Gow.Init(); }
public void GetSpecialOffers() { //Get special offers from GOW Gow.GetSpecialOffers(error => { }); }
public void SubscribeToNotifications() { //Subscribe to push notifications if not autosubscribe Gow.SubscribeToNotifications(); }