Получите единство компонента жесткого тела
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
Comfortable Capybara
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
public Rigidbody rigidbody;