In order for your game to work, you need to define what actually happens in your game. Unity provides you with the foundations of what you need, such as rendering graphics, getting input from the player, and playing audio; it’s up to you to add the features that are unique to your game.
To make this happen, you write scripts that get added to your game’s objects. In this chapter, we’ll introduce you to Unity’s scripting system, which uses the C# programming language.
When writing scripts ...