Chapter 9. Start Building a Game and Get the Basic Structure Running
Everything you've learned in this book up to this point has mostly been about getting to know C#, and how to use it at a relatively basic level. Unity has been used more like a helper to explain C#. The next step is to focus more on using Unity's features and let C# play the supporting role. Our goal is to tap into Unity's built-in features using your new ability to write and read C# code, in order to use the variables and methods of Unity's classes provided and documented in the Scripting Reference.
The Scripting Reference provides all the keys to providing GameObjects with action and response behaviors. Over the next two chapters, we will be adding scripts to GameObjects to create a simple game. The game itself is very basic to demonstrate how to use C# and the Scripting Reference to code some of the common game features and GameObject behaviors.
In this chapter, we'll dig into the Scripting Reference some more to...