Posts by João Víctor • 11 points
1 post
-
0
votes2
answers27
viewsA: Unity Nullreferenceexception: Object Reference not set to an instance of an Object Player.Update() (at Assets/Scripts/Player.Cs:22)
First I recommend you not to use Getcomponent. Instead, declare the variable of the type you want, example : You are giving a Getcomponent in the Rigidbody of the object in which this class is, so…