T IStoreConfiguration を継承している T
ストア固有の構成設定にアクセスします
関連項目: IStoreConfiguration と IPurchasingBinder.RegisterConfiguration
以下は Store クラス内部の初期化を行うためのストアの設定例です。
using UnityEngine; using UnityEngine.Purchasing;
public class MyStoreClass : MonoBehaviour, IStoreListener { void Awake() { ConfigurationBuilder builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance()); builder.AddProduct("levelpackfoo", ProductType.NonConsumable); builder.Configure<IGooglePlayConfiguration>().SetPublicKey("MIIBIjA...j"); UnityPurchasing.Initialize(this, builder); }
public void OnInitialized(IStoreController controller, IExtensionProvider extensions) {} public void OnInitializeFailed(InitializationFailureReason error) {} public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs e) { return PurchaseProcessingResult.Complete; } public void OnPurchaseFailed(Product item, PurchaseFailureReason r) {} }