I will be specific this time......
so im trying to add a clock system to my game through which the player will get 1 life back after every 30 mins.
for example like in candy cush. the person gets 1 life back after every 15mins. even if the game is not running on the phone.
I dont know how to do it.
SO a lil help. will be appreciated.