HOW TO FIX

Raivas Gamer 6 Reputation points
2021-05-09T14:36:09.92+00:00

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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,575 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Viorel 111.7K Reputation points
    2021-05-09T16:25:35.387+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments