C# error CS1525 Unexpected symbol 'rigidbody'

You probably fixed it already but the line above the error is missing the ; at the end.