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

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.

主站蜘蛛池模板: 浑源县| 平昌县| 宁蒗| 广水市| 达州市| 纳雍县| 隆安县| 绍兴市| 博罗县| 景德镇市| 惠来县| 穆棱市| 喜德县| 秭归县| 怀宁县| 建阳市| 陕西省| 永春县| 彭水| 廉江市| 论坛| 仙桃市| 镇宁| 武清区| 申扎县| 屏边| 靖江市| 凯里市| 盐津县| 孙吴县| 搜索| 太谷县| 航空| 白城市| 淳安县| 车致| 德清县| 乳源| 开阳县| 镇雄县| 乐陵市|