Esempio n. 1
0
    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));
    }
Esempio n. 2
0
    public AppcoinsPurchaseProcessingResult ProcessPurchase(AppcoinsProduct p)
    {
        SetStatus("Processed purchase " + p.skuID);

        onPurchaseSuccess.Invoke(p);

        return(AppcoinsPurchaseProcessingResult.Complete);
    }
 void OnPurchaseProduct(PurchaseResultArgs purchaseResultArgs)
 {
     onPurchase?.Invoke(purchaseResultArgs);
     CheckDisableIfOwned();
 }
Esempio n. 4
0
 public void Acquire()
 {
     onPurchased.Invoke(unitData.Price * -1);
     StartCooldown();
 }