- Home /
Shopping with GameCoins
if i kill 200 enemies(bots/zombies) a shoping crate will drop down from the sky letting me shop - thats easy, but how will be able to access a gui with labels and buttons on side saying buy - thats also easy. But then how will i check if i had bought the item, and if i did buy it, ill press certain button, any help or scripts that can start me up. Thanx
Answer by geniuscd · Apr 03, 2013 at 07:48 AM
I think you need to store the user progress/purchases in order to track what he bought. use XML file(save/load) or playerPrefs( easiest and fastest way but its not secure) or create a binary reader/writer, to actually save/load user data.
so every time u display the GUI, just check the user's file, and display the results accordingly :) hope it helps