1

I have a big problem. I got the plugin to work, and i can test purchase my items. But i can`t find the place in the scripts where i can add the action to use when a item was purchased. i have 3 items, named "item60" "item70" and "item80". Can anyone help me please ?

Steven
  • 166,672
  • 24
  • 332
  • 435
Thomas
  • 11
  • 1

1 Answers1

0

i use prime31 and i take care of the actions in this method, here is my remove ads purchase

    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" );
                }
    }
}
JRowan
  • 6,824
  • 8
  • 40
  • 59