make something movei n a direction unity code example
Example: how to move in move direction in unity
transform.position += transform.forward * Time.deltaTime * movementSpeed;
transform.position += transform.forward * Time.deltaTime * movementSpeed;