Time for action – putting the pieces together

That was the last of the scripts, for the moment. We have our tank and our scripts; the next step is to put them together.

  1. Now, we need to add them to our tank. Remember how we added our Tic-tac-toe script to the camera in the last chapter? Start by selecting your tank in the Hierarchy window. Before they work, we will first need to add the CharacterController component to our tank. So, go to the top of the Unity Editor and select Component, then select Physics, and finally click on the Character Controller option.
    • You will notice that a green capsule also appears on the tank in the Scene view; at the same time the new component is added. This capsule represents the space that will collide and interact ...

Get Unity Android Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.