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

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
主站蜘蛛池模板: 广州市| 鹤山市| 临沧市| 平南县| 鄄城县| 简阳市| 拉孜县| 安平县| 赞皇县| 左权县| 伊春市| 天峻县| 玉田县| 扬中市| 双江| 兴化市| 元氏县| 潜江市| 景宁| 新乡县| 宁津县| 潍坊市| 乌审旗| 犍为县| 恩平市| 盐津县| 涿州市| 仪陇县| 五大连池市| 晋中市| 葫芦岛市| 东至县| 鄱阳县| 休宁县| 枝江市| 增城市| 丰县| 鹤峰县| 张家港市| 鄱阳县| 辽阳县|