Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

"How to make a Video Game in Unity " Score error, need help pls (Solved)

Hello,

i am at episode 07 and I would like to display the score. I have transferred the code from the video 1 to 1, but when I drag the text into the player object and then play, I get the error message: UnassignedReferenceException: The variable player of Score has not been assigned.

You probably need to assign the player variable of the Score script in the inspector.

UnityEngine.Transform.get_position () (at <a4546799a4ab426788e4204c69507924>:0)

Score.Update () (at Assets/Scripts/Score.cs:9)


I would be very happy about help!

Here is a git Hub link to the COde: https://github.com/GeneralBome/-Brackeys---How-to-make-a-Video-Game-/blob/main/Score.cs



My Objekts:


Text is where Score.cs is saved in.




nvm i am stupid for everyone thats still has the question: Move the Player right in here:


Sign In or Register to comment.