question

RaivasAsnauskas-7444 avatar image
0 Votes"
RaivasAsnauskas-7444 asked ·

HOW TO FIX

Hi im a new game dev starter and visual studios and c# and i whanted to ask for help becouse i ran into a problom that i cant get pas
can someone help.

my problom is that the curly bracket dosent go where it sapose to go


95071-screenshot-2021-05-09-172916.png


vs-general
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Viorel-1 avatar image
1 Vote"
Viorel-1 answered ·

It seems that you entered an if inside the Movement class, but such statements must be typed inside the member functions. For example, it can be placed in the FixedUpdate function. Try removing the '}', which is before the if, or type this 'if' inside the corresponding function.




·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.