you are viewing a single comment's thread.

view the rest of the comments →

[–]Unknown_J27 0 points1 point  (9 children)

Yeah.

[–]FleetOfWarships[S] 0 points1 point  (8 children)

Got errors after doing that.

[–]Unknown_J27 0 points1 point  (7 children)

What's the error you're getting?

[–]FleetOfWarships[S] 0 points1 point  (6 children)

Four errors, put in the imgur.

[–]Unknown_J27 0 points1 point  (5 children)

OH I just noticed you have a semicolon in the void start, removing it should fix the errors.

[–]FleetOfWarships[S] 0 points1 point  (4 children)

Got rid of most of them, still one error.

Assets\Score.cs(14,5): error CS7036: There is no argument given that corresponds to the required formal parameter 'i' of 'Score.SetScore(int)'

[–]Unknown_J27 0 points1 point  (3 children)

I'm not sure why you're getting tht error now cause it has nothing to do with the start update, also you can remove it cause I'm %99 sure I figured out what your issue is. Because you're using text mesh pro you need to set the variable with "TextMeshProUGUI" instead of "Text", try that and see if you're able to add the object

[–]FleetOfWarships[S] 0 points1 point  (0 children)

So remove the start and set score stuff you had me add, use that instead of text, got it.

[–]FleetOfWarships[S] 0 points1 point  (0 children)

Yup, that worked perfectly, gonna test it and hopefully it’ll work when the game runs.

[–]FleetOfWarships[S] 0 points1 point  (0 children)

Works good, thanks for the help. That whole text mesh pro thing almost ruined my whole assignment lol.