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

Chapter 2. Introducing the Building Blocks for Unity Scripts

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

For those who get sweaty palms by 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 and methods in scripts
  • The class, which is a container for variables and methods
  • Turning a script into a component
  • Components that communicate using the dot syntax
  • Making decisions in code
主站蜘蛛池模板: 洛宁县| 临澧县| 铜梁县| 金华市| 清涧县| 河北省| 和顺县| 孙吴县| 惠来县| 江门市| 长宁区| 泗水县| 梅河口市| 日土县| 田阳县| 南充市| 晋州市| 临武县| 全椒县| 新乐市| 剑川县| 九龙坡区| 成都市| 舞钢市| 拜泉县| 定西市| 金川县| 高邑县| 黎川县| 金塔县| 云霄县| 炉霍县| 云南省| 连州市| 青田县| 潜江市| 柞水县| 宁阳县| 班玛县| 永和县| 恩平市|