Question about fliping a character

I want that when you press a gui button, the fps character rotates 45 degrees to the right, how could I do it?

transform.Rotate(Vector3.up, 45.0f);