コード例 #1
0
        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);
        }
コード例 #2
0
        public void HandleOnPurchaseEnded(PurchaseIAPResult purchaseResult)
        {
            if (_waitingModal != null)
            {
                _waitingModal.Close();
            }

            Release();
        }
コード例 #3
0
 public BuyItemResult(BuyItemResultCode resultCode, PurchaseIAPResult iapResult = null)
 {
     this.resultCode        = resultCode;
     this.purchaseIAPResult = iapResult;
 }
コード例 #4
0
 void OnBillingPurchased(PurchaseIAPResult result)
 {
     purchasedIAPSignal.Dispatch(result);
 }