Checking bool in a If statement

Hello. Could someone help me? It’s a simle thing but I have no idea why it’s getting an error.

I’m trying to check some bool in a If statement and then call a function if these bool are ture but I’m getting a weird error

“error CS0019: Operator &&' cannot be applied to operands of type method group’ and `bool’”

What does that mean?

This is the code

void ActivatePlayer(){

	if (rbPlayer.IsSleeping && canShoot){

		SetMyTurnOn ();

	}

IsSleeping is a variable or a function? if function it should be: rbPlayer.IsSleeping()

Yeah Just logged in to say I got the problem now.

void ActivatePlayer(){

	if (rbPlayer.IsSleeping() && canShoot){

		SetMyTurnOn ();

	}



}

Thanks guys.