包含此页的版本:
不含此页的版本:
调用RegisterStore方法为存储和实现提供名称,该方法必须实现 IStore 接口。
public override void Configure() {
RegisterStore(“GooglePlay”, InstantiateMyStore());
}
private void InstantiateMyStore() {
if (Application.platform == RuntimePlatform.Android) {
return new MyAlternativeGooglePlayImplementation ();
}
return null;
}
商店名称必须与开发人员在为您的商店定义产品时使用的名称相匹配,因此Unity IAPUnity In App Purchase
的缩写 见术语表在地址为您的商店命名时使用正确的产品标识符。