private void CheckAttackDirection(Transform target) { if (target.position.x > transform.position.x && !mover.facingRight) { mover.Flip(); } else if (target.position.x < transform.position.x && mover.facingRight) { mover.Flip(); } }