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

Introducing the Building Blocks for Unity Scripts

The C# programming language 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 necessary to learn 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 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
主站蜘蛛池模板: 张掖市| 和政县| 文登市| 嘉善县| 惠安县| 兴安盟| 香港| 丰城市| 利津县| 多伦县| 峨眉山市| 山东省| 阳曲县| 云南省| 祁门县| 惠水县| 清水河县| 徐闻县| 固安县| 泸溪县| 山西省| 颍上县| 慈利县| 玉树县| 阳曲县| 乡宁县| 双辽市| 绥棱县| 安庆市| 通州市| 九寨沟县| 乌鲁木齐市| 桦川县| 九龙坡区| 伊吾县| 子洲县| 珠海市| 鸡东县| 科尔| 巴中市| 伊春市|