public void OnPurchaseFailed(AppcoinsProduct product, AppcoinsPurchaseFailureReason failureReason) { onPurchaseFailed.Invoke(product); // A product purchase attempt did not succeed. Check failureReason for more detail. Consider sharing // this reason with the user to guide their troubleshooting actions. SetStatus(string.Format("OnPurchaseFailed: FAIL.\nProduct: '{0}',\nPurchaseFailureReason: {1}", (product != null ? product.skuID : "none"), failureReason)); }
public AppcoinsPurchaseProcessingResult ProcessPurchase(AppcoinsProduct p) { SetStatus("Processed purchase " + p.skuID); onPurchaseSuccess.Invoke(p); return(AppcoinsPurchaseProcessingResult.Complete); }
void OnPurchaseProduct(PurchaseResultArgs purchaseResultArgs) { onPurchase?.Invoke(purchaseResultArgs); CheckDisableIfOwned(); }
public void Acquire() { onPurchased.Invoke(unitData.Price * -1); StartCooldown(); }