I get this error in unity 5.3.5
Error CS0619 ‘Component.rigidbody’ is obsolete: ‘Property rigidbody has been deprecated. Use GetComponent<Rigidbody>() instead. (UnityUpgradable)’
I had to preface rigidBody and the GetComponent call with “this.”
private Rigidbody rigidBody;
this.rigidBody = this.GetComponent<Rigidbody>();