官术网_书友最值得收藏!

Chapter 2. Introducing the Building Blocks for Unity Scripts

A programming language such as C# can appear to be very complicated at first but in reality, there are two parts that form its foundation. These parts are variables and methods. Therefore, understanding these critical parts is a prerequisite for learning any of the other features of C#. Being as critical as they are, they are very simple concepts to understand. Using these variable and method foundation pieces, we'll be introduced to the C# building blocks used to create Unity scripts.

For those people who get sweaty palms just thinking of the word script, wipe your hands and relax. In this chapter, I'm going to use terms that are already familiar to you to introduce the building blocks of programming. The following are the concepts introduced in this chapter:

  • Using variables in a script
  • Using methods in a script
  • The class which is a container for variables and methods
  • Turning a script into a Component
  • Components communicating using the Dot Syntax

Let's have a look at these primary concepts.

主站蜘蛛池模板: 涪陵区| 五华县| 临沭县| 驻马店市| 沁阳市| 涟水县| 内丘县| 萨迦县| 项城市| 望奎县| 云龙县| 金川县| 麻城市| 沽源县| 安仁县| 保德县| 临邑县| 会宁县| 清河县| 冷水江市| 阜平县| 奈曼旗| 东明县| 武城县| 襄城县| 公安县| 雷州市| 开平市| 富源县| 靖安县| 江川县| 四会市| 娄底市| 闽侯县| 长岛县| 福清市| 甘南县| 东宁县| 措美县| 沐川县| 隆昌县|