Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PurchaseFailedEventArgs.cs 992B

12345678910111213141516171819202122232425262728293031
  1. namespace UnityEngine.Purchasing
  2. {
  3. /// <summary>
  4. /// A purchase that failed including the product under purchase,
  5. /// the reason for the failure and any additional information.
  6. /// </summary>
  7. public class PurchaseFailedEventArgs
  8. {
  9. internal PurchaseFailedEventArgs(Product purchasedProduct, PurchaseFailureReason reason, string message)
  10. {
  11. this.purchasedProduct = purchasedProduct;
  12. this.reason = reason;
  13. this.message = message;
  14. }
  15. /// <summary>
  16. /// The product which failed to be purchased.
  17. /// </summary>
  18. public Product purchasedProduct { get; private set; }
  19. /// <summary>
  20. /// The reason for the failure.
  21. /// </summary>
  22. public PurchaseFailureReason reason { get; private set; }
  23. /// <summary>
  24. /// A message containing details about the failure.
  25. /// </summary>
  26. public string message { get; private set; }
  27. }
  28. }