I need to rotate my object and then save the rotation in a variable, so I tried
RotationObject1 = Object1.transform.Rotate(Time.deltaTime, 1, 0);
But I need to declare the variable and I have no idea what type it is? (Transform, float, int, boolean or similar)