I want to rotate an Axe from the script. I Added a transform rotate line for this and values in the z-axis updated as per code but no rotation visible on the screen. It moving in the right direction as per code but not rotating despite values are updating successfully in the z-axis.
[SerializeField] float translationSpeed = 1f;
float RotationSpeed = 180f;
// Update is called once per frame
void Update()
{
transform.Translate(Vector2.right*translationSpeed* Time.deltaTime);
transform.Rotate(Vector3.back * RotationSpeed * Time.deltaTime);
}