Chapter     3

Event Handling

Now we’re ready to begin game coding in C#, and there’s a lot to do. At this stage, you should have a prepped Unity project available, either a project you’ve created manually by following along with previous chapters or the ready-made project provided in the book companion files in the Chapter2 folder (as shown in Figure 3-1). This project represents CMOD so far and includes one scene file with a complete level, including meshes, prefabs, textures, lighting, and navigation. From this project, we’ll begin in this chapter to add new behavior and functionality through C# scripting.

9781430267461_Fig03-01.jpg

Figure 3-1. The completed project ...

Get Pro Unity Game Development with C# 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.