void Update () {
if (_controlsDisabled || _ragdollToggle.ragdolled) return;
//Rotate Left
if (_isRotatingLeft && _canMoveLeft) {
_animator.SetBool("TurnLeft", true); //Set Animation value
transform.Rotate(0, -TURNRATE * Time.deltaTime, 0);
} else {
_animator.SetBool("TurnLeft", false); //Set Animation value
}
//Rotate Right
if (_isRotatingRight && _canMoveRight) {
_animator.SetBool("TurnRight", true); //Set Animation value
transform.Rotate(0, TURNRATE * Time.deltaTime, 0);
} else {
_animator.SetBool("TurnRight", false); //Set Animation value
}
}