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.
Lives system like in Candy Crush Saga PLEASE HELP!!!!
This is how I get the time of when the user runs out of lives.
Code (csharp):
- int day = DateTime.Now.Day;...