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

Summary

This chapter introduced the basic concepts of variables, methods, and the dot syntax. These building blocks are used to create scripts and classes. Understanding how these building blocks work is critical, so you don't feel you're not getting it.

We discovered that a variable name is a substitute for the value it stores, a method name is a substitute for a block of code, and when a script or class is attached to a GameObject, it becomes a component. The dot syntax is just like an address for locating GameObjects and components.

You also learned how to make decisions in code based on variable values. With these concepts under your belt, you can proceed to learn the details of the sentence structure, grammar, and syntax used to work with variables, methods, and the dot syntax. In the next chapter, we will cover the details of using variables.

主站蜘蛛池模板: 武清区| 南漳县| 玉溪市| 隆德县| 塔河县| 化隆| 赫章县| 凤城市| 新丰县| 正安县| 丽水市| 清涧县| 伊春市| 广水市| 黄平县| 离岛区| 壶关县| 闽清县| 蒙阴县| 烟台市| 察隅县| 青铜峡市| 墨江| 九寨沟县| 工布江达县| 周至县| 盐亭县| 阳新县| 扶余县| 达拉特旗| 柏乡县| 格尔木市| 牟定县| 沾化县| 新野县| 铜陵市| 洛南县| 当涂县| 宜川县| 左权县| 普定县|