lib_unity_purchase/Samples~/01 BuyingConsumables/README.md

15 lines
843 B
Markdown
Raw Normal View History

2024-01-29 18:49:33 +08:00
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](https://docs.unity3d.com/Packages/com.unity.purchasing@3.1/manual/UnityIAPSettingUp.html). 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.