- Home /
Question by
ujwalbharat · Aug 09, 2014 at 08:06 PM ·
webplayerrestrict
Restrict user play time ?
May I know how to go about restricting user play time?
For example, I want the user to only be able to play the game three times a day. The game will be deployed online (web player).
Any idea how?
Appreciate your input, thanks !!
Comment
Answer by Graham-Dunnett · Aug 09, 2014 at 08:07 PM
Record the time the player spends in the game. Encrypt that and write to a player pref. When they next start the game, check the time you've stored and see if it violates your time limit.
Your answer
![](https://koobas.hobune.stream/wayback/20220613160209im_/https://answers.unity.com/themes/thub/images/avi.jpg)