Summary

Even though this simple game wasn't much to look at, its sole purpose was to show you how small sections of code are brought together to form a game. We used C# to turn Rigidbody physics on and off for Player, and moved the Player using physics forces. A couple of extra cameras were added to provide two ways to follow the Player. We created a scoring system that's displayed on screen during the game. Finally, we covered detecting and using collision and trigger events.

In the final chapter, we'll review your new C# skills and where to go from here to continue your education.

Get Learning C# by Developing Games with Unity 3D 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.