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

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
主站蜘蛛池模板: 平湖市| 兴和县| 吴忠市| 石渠县| 绥棱县| 扎鲁特旗| 威信县| 莱西市| 博野县| 嘉禾县| 丰镇市| 马鞍山市| 毕节市| 阜新市| 沙坪坝区| 东辽县| 公主岭市| 十堰市| 柳江县| 饶阳县| 郎溪县| 合川市| 岳阳县| 噶尔县| 金乡县| 大关县| 衢州市| 通州市| 洛宁县| 陆丰市| 房产| 辽阳县| 吉隆县| 昭觉县| 九江县| 鄂托克旗| 昂仁县| 清流县| 肇州县| 隆昌县| 襄樊市|