I am still currently trying to learn how to program in c# and java, I know more java though. But I don’t know enough to program a code to change the rotation direction of an object.

It would be helpful if I could even have a code that spins the object around 180 degrees.

Thanks!

var x=0;
var y=180;
var z=0;
then… in update function…

(on key tap event code here)
gameObject.Transform.Rotate(x,y,z);