Detect wether Character is rotating to the left or right?

Hello Dear Community,

i have an easy problem but i still cant find a clean fix for that,

my simple Character Controller Script:

    private void Movement(){
        if (transform != null)
        {
            transform.Rotate(0, Input.GetAxis("Horizontal") * RotateSpeed, 0);      
            var forward = transform.TransformDirection(Vector3.forward);
            float curSpeed = Speed * Input.GetAxis("Vertical");
            characterController.SimpleMove(forward * curSpeed);
        }
    }

so lets say, if the Character is rotating to the Left or Right,
i would love to play a Animation depending on the Rotation.

got it:

float moveHorizontal = Input.GetAxis("Horizontal");

gives back if the “GameObject” turns left (from 0 to -1) if the “GameObject” turns right (from 0 to 1)