Adding a coin to collect

On reaching this far, our game has many features, namely, a complete environment, first-person controller, and water. However, we're supposed to be making a coin collection game and there aren't any coins for the player to collect yet. Now, to achieve fully collectible coins, we'll need to write some C# script, which will happen in the next chapter of this book. However, we can at least get started here at creating the coin object itself. To do this, we'll use a Cylinder primitive that's scaled to form a coin-looking shape. To create a cylinder, select GameObject | 3D Object | Cylinder from the application menu:

Adding a coin to collect

Figure 1.57: ...

Get Unity 5.x By Example 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.