i got two error messages but i have no idea what the mean im still a begginer could anybody help me
You’re trying to run the UpdateMouseLook() function outside of any function. You’re also apparently declaring a new Update() function inside of a function, but providing no contents to it. I suggest getting a C# book or following a C# tutorial, as these are C# syntax issues.
i litterly did exactly as the tutorial did exact how is it working for them but not me
I guarantee that the code in the tutorial is not identical to yours. Yours is not valid C# and will not compile, for the reasons I already stated.
No you didn’t. Because they didn’t get this error.
screw it i give up im not good near good enough for this code
The problem is you don’t know C# language syntax. Learn that first. Game development requires a considerable amount of learning and patience.
do you think i should keep going?
Yes, but I’d stop working on Unity for now, and just focus on learning C# first. Once you have the basics down, how to declare methods, where C# has you write your code, then come back to the Unity. It will make a lot more sense at that point.
That solely depends on you. Do you want to develop games? If you really want to, you can. However, if you are not willing to go through the effort of learning how to do it, which can involve a lot of patience at first, then it may not be for you. Only you know the answer.
As @Joe-Censored recommended, you may wanna start with learning C# outside of Unity first. But there are also good tutorials covering both at the same time. I can recommend the series on gamedevelopment by Sebastian Lague on youtube, which starts at 0 knowledge, but obviously cannot cover every aspect of both Unity and C#. It may be a good entry point from where you can continue yourself tho.
yes ok is there any videos you can link to me?
its my dream to develop games its just so stressful at first
I personally can’t, as I taught myself C# using books. Video tutorials weren’t really a thing at the time. Hopefully someone else can make suggestions.
ah ok
hm i dont have any errors but again my code wont work
Just dont give up dude,and dont try copy,paste “hard tutorials”.
I can recommend you this channel find some videos for begginers.
And official learn unity courses are also good.
thank you and yeah i dont copy and paste i normaly follow the video to understand it more even if it means spending hours longer on it
i keep getting this error message do you have any idea how to fix it ?

That isn’t an error message, that is a warning. Errors are in red.
What it is saying though is in playercontroller.cs, on line 7, you are defining a variable called “playerCamera”. But nowhere in the project do you ever use it. It is just trying to be helpful in case you forgot to write the code which uses it. I’d assume that code would be introduced later in the tutorial, so just ignore it.
It is a pretty common warning you’ll see when writing scripts you’re not yet finished with yet, as you’ll often add variables which you have plans for, but have not yet written the code which uses them. I only pay attention to that warning if it is for code which I thought I was done with. On rare occasion I go “woops!” when I investigate, but usually it is because I redesigned the script later to no longer use that variable, but simply forgot to remove it entirely.
oh