I have set up a timer for my game, however I would like to remove the numbers after the decimal and display the time in whole seconds.
I just don't know how I would do that, any advice would be great.
Here's the most optimized way. See my answer.
Use InvokeRepeating() and you will save method calls meaning faster performance for the same result.
answered Nov 05 '10 at 07:49 PM
just do this:
by parsing the value into an integer the timer automatically returns you whole numbers.
answered Nov 06 '10 at 04:10 PM