Cannot convert method group 'GetComponent' to non-delegate type 'NavMeshAgent'. Did you intend to invoke the method? code example
Example: Cannot convert method group 'GetComponent' to non-delegate type
rigid2D = GetComponent<Rigidbody2D>; //no
rigid2D = GetComponent<Rigidbody2D>(); //yes