5
我正在嘗試使用Unity Ads和AdMob爲應用內購買(IAP)提供價格。如何從Unity AIP中的AdMob獲得價格?
public void InitializePurchasing()
{
// If we have already connected to Purchasing ...
if (IsInitialized())
{
// ... we are done here.
return;
}
var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
builder.AddProduct(PRODUCT_REMOVE_ADS, ProductType.NonConsumable);
UnityPurchasing.Initialize(this, builder);
removeAdsPriceText.text = m_StoreController.products.WithID("removeads").metadata.localizedPrice.ToString(); // This should be the code to get the price
}
我錯過了一步?
這是我到目前爲止所。當我在巡視員中按下游戲時,價格降至0.01美元,但是當我將其構建到我的手機時,它不會改變。 。removeAdsText.text = m_StoreController.products.WithID( 「removeads」)metadata.localizedPrice.ToString(); –
製作移除廣告的IAP的目標是? –
我有兩個IAP移除廣告,另一個解鎖所有內容。 –