cannot convert method group to type unity code example
Example: Cannot convert method group 'GetComponent' to non-delegate type
rigid2D = GetComponent<Rigidbody2D>; //no
rigid2D = GetComponent<Rigidbody2D>(); //yes
rigid2D = GetComponent<Rigidbody2D>; //no
rigid2D = GetComponent<Rigidbody2D>(); //yes