How to add rigidbody as a variable

78

How to add rigidbody as a variable -

public Rigidbody rigid;

void Start() {
  rigid = GetComponent<Rigidbody> ();
}

Comments

Submit
0 Comments