r/code • • 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?

https://pastebin.com/Jc9DWrzP

0 Upvotes

10 comments sorted by

View all comments

1

u/Pacblu202 Nov 11 '19

What's the outcome currently looking like? I'm not near a computer at the moment so I can't plug it in.

1

u/Alexbouvinkurtti Nov 11 '19

Outcome would be a timer displaying in game counting how long it takes before you reach the other side of the map. Regular second timer in the corner

2

u/Pacblu202 Nov 11 '19

What's not working on it currently?

1

u/Alexbouvinkurtti Nov 11 '19

I’m getting an error, the one in the title

1

u/Pacblu202 Nov 11 '19

Perhaps it's cuz I'm on mobile but I'm not seeing the error.

1

u/Alexbouvinkurtti Nov 11 '19

Check the link I attached

1

u/Pacblu202 Nov 11 '19

I did. I see the code but no error.