So I'm making a game, and I want the user to be able to fight crimes. Only I don't want them to be able to fight crimes again for a period of time, a 10 second delay max. I know that I could use Math.Random() somehow, but I'm having trouble figuring out how to use it in this context.
To clarify, I want a label and two buttons saying yes or no to become visible after a random period of time, 20 seconds max. Can someone explain how this could be done, or if there is a better way to do this?
Thanks in advance.