public void Purchase(AN_VendingLib.AN_PurchaseRequest request, Action <AN_BillingPurchaseResult> callback) { SA_Coroutine.WaitForSeconds(1, () => { AN_Purchase purchase = new AN_Purchase(request.m_product.ProductId, request.m_product.Type.ToString(), request.m_developerPayload); callback.Invoke(new AN_BillingPurchaseResult(purchase)); }); }
public void Purchase(AN_VendingLib.AN_PurchaseRequest request, Action <AN_BillingPurchaseResult> callback) { AN_Java.Bridge.CallStaticWithCallback <AN_BillingPurchaseResult>( AN_BILLING_CLASS, "Purchase", callback, request); }