public void Exit() { var mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); bool isLeftSideOfScreenClicked = mousePos.x < 0; obj.arc.direction = isLeftSideOfScreenClicked ? Vector2.left : Vector2.right; if (isLeftSideOfScreenClicked != obj.spriteRenderer.flipX) { obj.Turn(); obj.turn = true; } }