private void HandleIapResult(PurchaseIAPResult iapResult, Promise <BuyItemResult> promise) { BuyItemResultCode resultCode = (iapResult.result == PurchaseIAPResultCode.Success) ? BuyItemResultCode.Success : BuyItemResultCode.InAppPurchaseFailed; var buyItemResult = new BuyItemResult(resultCode, iapResult); promise.Resolve(buyItemResult); }
public void HandleOnPurchaseEnded(PurchaseIAPResult purchaseResult) { if (_waitingModal != null) { _waitingModal.Close(); } Release(); }
public BuyItemResult(BuyItemResultCode resultCode, PurchaseIAPResult iapResult = null) { this.resultCode = resultCode; this.purchaseIAPResult = iapResult; }
void OnBillingPurchased(PurchaseIAPResult result) { purchasedIAPSignal.Dispatch(result); }