unity get component rigidbody 2d code example
Example: get rigidbody component unity
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
//The Variable
Rigibody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}