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.
|
- using UnityEngine;
-
- namespace UnityEngine.Purchasing
- {
- [AddComponentMenu("")]
- public class DemoInventory : MonoBehaviour
- {
- public void Fulfill (string productId)
- {
- switch (productId) {
- case "100.gold.coins":
- Debug.Log ("You Got Money!");
- break;
- default:
- Debug.Log (
- string.Format (
- "Unrecognized productId \"{0}\"",
- productId
- )
- );
- break;
- }
- }
- }
- }
|