Time for action – making the hands and tray follow the mouse
Any script that we create in Unity is reusable, and we can attach scripts to multiple GameObjects. Let's attach our MouseFollow script to the HandsAndTray GameObject.
Find the MouseFollow script in the Project panel (I put mine inside a "Scripts" folder), and drag it onto the HandsAndTray GameObject in the Hierarchy panel. (Make sure to drop it on the parent HandsAndTray GameObject, not the child handsAndTray model.)
Test your game by pressing the Play button.
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 only trouble is that the hands and tray may be flipped backwards. That's because in the MouseFollow script, we're telling the paddle to constantly tilt towards y=0. Our HandsAndTray GameObject is rotated 180 degrees in the y axis. No worries—it's an easy...