how to get component rigidbody in Unity visual Studios code example
Example 1: unity rigid body variable
public Rigidbody rigidbody;
Example 2: unity rigidbody
private Rigidbody rigidbody
public Rigidbody rigidbody;
private Rigidbody rigidbody