I got an Enemy and I wanna flip the Sprite when his X - Value is increasing and the Opposite, in my PlayerMovement Skript this kind of Method worked but now it doesn't anymore.
private void UpdateDirection()
{
if (transform.position.x < -.1f)
{
spr.flipX = true;
}
else
{
spr.flipX = false;
}
}
Does it need to check if its moved, cant you just check the rigidbodys velocity like this: