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

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
主站蜘蛛池模板: 洛阳市| 新化县| 昌都县| 洛阳市| 通辽市| 剑阁县| 乐业县| 文登市| 明水县| 台北县| 井冈山市| 根河市| 郧西县| 磐安县| 乌海市| 房产| 博白县| 永年县| 开江县| 沈阳市| 鄂伦春自治旗| 九龙坡区| 溧阳市| 永康市| 百色市| 盐边县| 新河县| 辽阳市| 罗源县| 昭觉县| 吉木萨尔县| 瑞昌市| 通山县| 咸阳市| 大港区| 延寿县| 长春市| 焦作市| 子洲县| 吉木萨尔县| 汉阴县|