Obtenha unidade de componente rígido
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
Comfortable Capybara
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
public Rigidbody rigidbody;