Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Lives system like in Candy Crush Saga PLEASE HELP!!!!

$
0
0
I am trying to implement a lives system in Candy Crush Saga where if you run out of lives then in 30 minutes they will regenerate. Here is the code I have so far. So, what I am doing is taking the current time of when the user runs out of lives. Then the next time they open the app I see what the time is and check to see if 30 minutes have elapsed and then refill the lives.
This is how I get the time of when the user runs out of lives.
Code (csharp):
  1. int day = DateTime.Now.Day;...
Lives system like in Candy Crush Saga PLEASE HELP!!!!

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>