Version: 6000.3
语言: 中文
商店模块
商店配置

注册您的商店

调用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
的缩写 术语表
在地址为您的商店命名时使用正确的产品标识符。

商店模块
商店配置