Chapter 13: Introduction to Unity Scripting with C#
Unity has a lot of great built-in tools to solve the most common problems in game development, such as the ones we have seen so far. Even two games of the same genre have their own little differences that make the games unique, and Unity cannot foresee that, so that's why we have scripting. Through coding, we can extend Unity's capabilities in several ways to achieve the exact behavior we need, all through a well-known language—C#. We will introduce how to create custom components using C# scripts.
One thing I should point out here is that this chapter is mainly a recap of C# scripting basics for Unity, but in one of the sections, I will explain some advanced tips for experienced programmers. So, try to not skip this chapter if you have programming experience but not in Unity.
In this chapter, we will examine the following scripting concepts:
- Creating C# scripts
- Using events and instructions ...