Chapter 4

Recipes: Common Components

4.1 Introduction

Many of the scripts in this book are in some way linked to the base framework or parts of larger systems, but there are some that we will use that could fit into a whole number of positions in a whole number of different game types. Utility scripts or commonly used systems are also going to come in really handy for the game projects. This chapter is all about those, an eclectic bunch of reusable scripts such as timers or utilities.

In the example source files, the COMMON folder can be found within the Scripts folder. This is where we store all of the scripts that may crop up now and again ...

Get C# Game Programming Cookbook for Unity 3D 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.