transform.rotate just one time.

hey guys. is it possible assing transform.Rotate(0,50,0) to a bool variable?

I mean if bool state true rotate object, if not don’t rotate ?

I mean if bool state true rotate object, if not don’t rotate

Well, just like you said

if(state)
{
    transform.Rotate(0,50,0);
}