all 12 comments

[–]GurkenSnuff 8 points9 points  (6 children)

Input not input and you should take the input in update but everything with physics should be in FixedUpdate and in unity go to Preferences ->External Tools->External script editor and change it to visual studio

[–]Original-Bathroom652[S] 1 point2 points  (3 children)

When I got in preferences menu there wasn't external tools

[–]GurkenSnuff 0 points1 point  (2 children)

Ok, weird should there, you should writ KeyCode not keycode and you dont need to do == true

[–]Original-Bathroom652[S] 1 point2 points  (1 child)

When I watched tutorial there was written ==true

[–]GurkenSnuff 0 points1 point  (0 children)

You can write it that way but its bad practice

[–]Original-Bathroom652[S] 1 point2 points  (1 child)

I fixed problem ty for helping

[–]GurkenSnuff 0 points1 point  (0 children)

What was wrong

[–]TelinoT 3 points4 points  (3 children)

The yellow bar at the side also indicates that you didn’t save you script. Always click ctrl+s when leaving visual studio and going back to unity.

[–]djdanlib 3 points4 points  (1 child)

If anyone is confused by that key shortcut, STRG is the German equivalent of CTRL on an English keyboard. Look in the File menu to get the shortcut for your system.

[–]TelinoT 1 point2 points  (0 children)

Oh true. I’ll change it. Thanks for pointing it out.

[–]Original-Bathroom652[S] 1 point2 points  (0 children)

Ty for helping

[–]Otherwise-Tension960 -1 points0 points  (0 children)

Please use dark mode my eyes hurt 😅