Version: 2017.1
public T Configure ();

戻り値

T IStoreConfiguration を継承している T

説明

ストア固有の構成設定にアクセスします

関連項目: IStoreConfigurationIPurchasingBinder.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) {} }