private void Move2PatrolPoint() { float distance = TargetDistance(patrolState.GetPatrolPosition()); if (distance > 2) { transform.position = Vector3.Lerp(transform.position, patrolState.GetPatrolPosition(), patrolState.PatrolSpeed * Time.deltaTime); } else { patrolState.SetNextPatrolPoint(); } }