hi. i want make a daily reward system for count played days and give reward to player.
look like this:
please help me
hi. i want make a daily reward system for count played days and give reward to player.
look like this:
please help me
Well, as you can see, noone is responding, because noone will write the whole script for you. You should take a look at the asset you just pasted, write down what it is doing, see if you can figure out some parts yourself, and if you are stuck on some scripting things but you have tried for hours, come back with that and we can have a look at it.
its a very simple thing to make, the basics of it is just keeping track of time.
Just need to find a persistent way to start a time and date, through player prefs or your own method of serialization.
Than on your games start you can check the current time with.
and check to see if it is a whole day later than your last value stored. If yes give the award and store this time as the one to check against on the next game start.