lib_unity_purchase/Samples~/01 BuyingConsumables
刘涛 0db5615dc0 init 2025-01-20 12:55:54 +08:00
..
.sample.json init 2025-01-20 12:55:54 +08:00
BuyingConsumables.cs init 2025-01-20 12:55:54 +08:00
BuyingConsumables.cs.meta init 2025-01-20 12:55:54 +08:00
BuyingConsumables.unity init 2025-01-20 12:55:54 +08:00
BuyingConsumables.unity.meta init 2025-01-20 12:55:54 +08:00
README.md init 2025-01-20 12:55:54 +08:00
README.md.meta init 2025-01-20 12:55:54 +08:00

README.md

README - In-App Purchasing Sample Scenes - Buying Consumables

In this example, you will learn how to initialize the In-App Purchasing package and handle a simple Consumable Product purchase.

This sample uses a fake store for its transactions, to use a real store like the App Store or the Google Play Store, you would need to register your application and add In-App Purchases. For more information, follow the documentation for one of our supported stores. Keep in mind that in this sample, product identifiers are kept in the BuyingConsumables.cs file.

Consumables

Consumables are products that users can purchase repeatedly. Consumable Products cannot be restored.

Examples:

  • Virtual currencies
  • Health potions
  • Temporary power-ups.