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

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.

主站蜘蛛池模板: 长岭县| 泾阳县| 长岭县| 乐清市| 金沙县| 泉州市| 丰台区| 四会市| 瑞安市| 郸城县| 景洪市| 肇源县| 禹州市| 遂溪县| 延长县| 西城区| 麟游县| 航空| 安泽县| 湘乡市| 海南省| 石渠县| 岳普湖县| 进贤县| 保康县| 淮阳县| 永年县| 金溪县| 大同县| 榆中县| 米林县| 繁峙县| 浙江省| 龙江县| 辽阳市| 福海县| 枣强县| 南投市| 思茅市| 汝阳县| 虞城县|