float speed = whatever; Vector2 positionToMoveTo = (whatever, whatever); void Update() { transform.position = Vector2.MoveTowards(transform.position, positionToMoveTo, speed * Time.deltaTime); }