Please use code tags .
The tutorial is written for an older version of Unity. Try adding this line to the top of your FixedUpdate function:
Rigidbody rigidbody = GetComponent<Rigidbody>();
Please use code tags .
The tutorial is written for an older version of Unity. Try adding this line to the top of your FixedUpdate function:
Rigidbody rigidbody = GetComponent<Rigidbody>();