error CS0019: Operator `>' cannot be applied to operands of type `method group' and `method group'

Hello guys, i’m getting this error:

error CS0019: Operator >' cannot be applied to operands of type method group’ and `method group’

while trying to follow up to the “Making an “Angry Birds” style game” tutorial.

Here are the code lines with the error:

if (!rigidbody2D.isKinematic && prevVelocity.SqrMagnitude > rigidbody2D.velocity.SqrMagnitude){

if (catapultToMouse.SqrMagnitude > maxScretchSqr)

Thanks

Typically (future questions) we would need to see more code to solve a problem. In this case, your problem is that you’ve misspelled ‘sqrMagnitude’. It has a small ‘s’.

if (!rigidbody2D.isKinematic && prevVelocity.sqrMagnitude > rigidbody2D.velocity.sqrMagnitude){