September 2011
Beginner
408 pages
9h 52m
English
Any script that we create in Unity is reusable, and we can attach scripts to multiple Game Objects. Let's attach our MouseFollow script to the HandsAndTray Game Object.
Scripts folder), and drag it onto the HandsAndTray Game Object in the Hierarchy panel. (Make sure to drop it on the parent HandsAndTray Game Object, not the child handsAndTray model.)The hands and tray should follow your mouse the very same way the paddle does. Because we generated a collider on the tray in the FBXImporter settings, the Ball should bounce on the tray just as it does with the Paddle.
The ...
Read now
Unlock full access