Game Development Reference
In-Depth Information
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 topic 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.
Figure 3-1. The completed project so far, which can be found in the topic companion files in the Chapter2 folder. In this chapter,
we'll start add C# script by coding an event-handling system
81
 
Search WWH ::




Custom Search