我有个大问题。我得到了插件的工作,我可以测试购买我的项目。但我在脚本中找不到可以在购买商品时添加动作的地方。我有3个项目,分别命名为"item60“、"item70”和"item80“。有谁能帮帮我吗?
发布于 2014-09-23 06:15:48
我使用prime31并在此方法中处理操作,以下是我的remove ads购买
void purchaseSucceededEvent( GooglePurchase purchase )
{
Debug.Log( "purchaseSucceededEvent: " + purchase );
if(purchase.purchaseState == GooglePurchase.GooglePurchaseState.Purchased){
if(purchase.productId == "jacs.apps.adds")
{
Debug.Log("inside jacs.apps.adds");
if(PlayerPrefs.HasKey("plus"))
{
adds = false;
PlayerPrefs.SetString("addskey","true");
}else{
PlayerPrefs.SetString("plus","on");
adds = false;
PlayerPrefs.SetString("addskey","true");
}
GoogleIAB.consumeProduct( "jacs.apps.adds" );
}
}
}https://stackoverflow.com/questions/25972789
复制相似问题