public void onClickMouse() { if (Input.GetMouseButton(0) && !isDead) { fusionManager.SetIsFollow(true); if (!(firstPositionSet)) { firstPosition = currentPosition; firstPositionSet = true; } targetPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); mouseDistance = Vector2.Distance(currentPosition, targetPosition); if (mouseDistance < unitClickableRange) { mouseCheck = true; } moveByMouse(); } }