Hi, I’m new to unity and would like to know how to keep a limited amount of resets for the player (as in 3). I want it so that you can get 3 resets per hour. I’ve already written a C# script for the actual restart button placed in the UI, but the problem is you can press unlimitedly, and that would make the game easy and not interesting. So any way I can do this?
You can use System.DateTime to determine the device time.
And what how do I limit the amount of clicks pressed?
Count them, compare them to your maximum, decide how to proceed.
Ok, I got it to work now, Thanks for you time and help!
1 Like