Want to give free Gems only once at the start of the game.

I am making an endless runner type game. In game there will be random spawning of gems. The player will collect it and player prefs will save it. But I also Want to give free Gems only once at the start of the game i.e. 10 gems at the start.

Can anyone knows it and help me how to give free gems at the start through the script?

I mean, if you are just using playerprefs, then just save a new playerpref. Player starts the game, you check if the playerpref exist, if not, give them gems, save out a playerpref. If the playerpref exist, don’t give them gems.

2 Likes

Seems good. Thanks