It’s not hard… Turning()
has three open braces and two close braces, which means void Animate()
is part of Turning()
. In case you don’t know, the (54,22) in the error means the problem is on line 54. Your screenshot doesn’t show the line numbers, so I had to read your code to try and work out where the error was. Please post the code rather than a screenshot next time, and that way the line numbers will be shown in the Answers question.
if(Physics.Raycast(camRay
etc etc
Check your brackets on that line.