I've been working on implementing Unity's IAP into my game for both iOS and Android (currently focusing on Android for this question), and it has been working fine so far.
In my design, whenever the user taps on a purchase button, I make screen changes, like disabling items, changing colors, showing the spinning graphic image, etc -- to provide visual cues.
I make all the necessary changes and then invoke the InitiatePurchase method in the IAP Controller. However, the IAP popup appears instantly before any of my screen changes takes effect. I've tried adding a "yield" command with "Wait For End Of Frame"; adding a flag that gets set in the Update function and checking that flag in a yield loop.
None of these works to allow the screen changes to take effect before InitiatePurchase takes over.
How can I do this?
Thanks,
Manny
↧