Não sei o que fazer alguém pode me ajudar??
Some notes on how to fix a NullReferenceException error in Unity3D
- also known as: Unassigned Reference Exception
- also known as: Missing Reference Exception
The basic steps outlined above are:
- Identify what is null
- Identify why it is null
- Fix that.
Expect to see this error a LOT. It’s easily the most common thing to do when working. Learn how to fix it rapidly. It’s easy. See the above link for more tips.
1 Like
Add a “Debug.Log(ge)” under line 22. That object will be null. Check if your string in the Find() method is correct written.
For the 2nd error, the rb object (rigidbody) should be null, add a “Debug.Log(rb)” on line 29 and check the console output.
*And asking in english would also help
1 Like