Code (CSharp):
- using System;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.Purchasing;
- // Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing.
- {
- public void InitializePurchasing()
- {
- // If we have already connected to Purchasing ...
- if (IsInitialized())
- {
- // ... we are done here.
- return;
- }
- //...