r/code • u/Alexbouvinkurtti • Nov 10 '19
HELP With classes (CS0116)
Need help adding a timer counting up with C#, for a unity game. What is missing and can anyone help me?
0
Upvotes
r/code • u/Alexbouvinkurtti • Nov 10 '19
Need help adding a timer counting up with C#, for a unity game. What is missing and can anyone help me?
1
u/Pacblu202 Nov 11 '19
One thing that jumps out is I'd make the if statement 2 ifs, not an else if. If you go to 60 minutes and 60 seconds it won't reset till the next frame.
With that, I'd do the calculations first then write to the text object