hello!
I want to store in to a variable the current angle of my player, I want to know if the player is rotating 90 degrees or every change in its angle.
I was trying this code :
float angle = transform.localRotation.z;
but it is not working, what do you suggest? thank you