From the previous section, we have the basic control setup for our robot to run, walk, aim, or shoot. Now, we need a script to control our character's rotation using the mouse while the character is aiming. We also add the laser target scope object, which will be used by the player to aim.
We will now create the
MouseLook script to control our character by performing the following steps:
MouseLook, double-click on it to launch MonoDevelop, and we will start writing some code.