September 2010
Beginner
384 pages
8h 49m
English
We are ready to rock. If we just set the paddle's x position to the mouse's screen position by using Input.mousePosition, we should be able to use the mouse to move the paddle. Change your line of code so that it looks like this:
transform.position.x = Input.mousePosition.x;
Save your Script and try it out.
Read now
Unlock full access