public void EndPurchase(Purchase purch) { if (this.currentPurchase == purch) { this.currentPurchase = null; } }
public List <Purchase> GetPending() { UnityEngine.Debug.Log("Resume pending"); List <Purchase> list = new List <Purchase>(); if (this.pending != null) { IEnumerator <MockPurchase> enumerator = this.pending.get_Values().GetEnumerator(); try { while (enumerator.MoveNext()) { MockPurchase current = enumerator.Current; list.Add(current); } } finally { if (enumerator == null) { } enumerator.Dispose(); } } return(list); }
public Purchase CreatePurchase(PremiumProduct product) { MockPurchase purchase = new MockPurchase(); purchase.product = product; purchase.State = EPurchaseState.Initiated; purchase.connector = this; return(this.currentPurchase = purchase); }