I have components in my player object like:
How can I acces in PlayerMovement.cs that RigidBody? How can I find it?
Thanks!
Create a Rigidbody object like
Rigidbody object;
and use
object = GetComponent<Rigidbody>();
in Start()
method. This works for Unity 5