Creating a Fixed Time to Compare Against
Hello Unity friends,
For my game, I have a cooldown timer using this timer setup: http://answers.unity3d.com/questions/222109/making-a-timer.html
I would like to know if it is possible to take the difference of the times and subtract it by a fixed timer ( 1 hour ) to get the difference of that. This would serve as a countdown timer until the next bonus is ready and would update within the Update() function.
I can't figure out how to create that fixed timer though, I have been trying to work with TimeSpan:
TimeSpan difference = currentDate.Subtract(oldDate); print ("Difference: " + difference); TimeSpan _time = difference; _time.Hours = 1;
Your answer
Follow this Question
Related Questions
Load scene after time 1 Answer
I need my timer to only start after it hits a trigger. Please help! 0 Answers
How to make an App that only works for a week? 1 Answer
Clock doesn't stop when reaches 0.0. Can you help me with this. 1 Answer
How can change the text in UI text component each 5 seconds after start timer 1 Answer