It looks like you're new here. If you want to get involved, click one of these buttons!
but
please help me
please help
Rigidbody needs to be inside the class. Right now it is above the curly brackets that contain the class. It does not need to be in a function such as start or update however.
put the 'public Rigidbody rb;' below the curly bracket on line 7 instead on top of it.
Answers
please help
Rigidbody needs to be inside the class. Right now it is above the curly brackets that contain the class. It does not need to be in a function such as start or update however.
put the 'public Rigidbody rb;' below the curly bracket on line 7 instead on top of it.