this is my code but the paddle just sticks at left side of the screen and it doesn’t move Is there
something wrong with my code?
void Update () {
Vector3 paddlepos = new Vector3 (0.5f, this.transform.position.y, 0f);
float mousePosInBlocks = Input.mousePosition.x / Screen.width * 16;
paddlepos.x = Mathf.Clamp (mousePosInBlocks, 0.5f, 15.5f);
this.transform.position = paddlepos;
}