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

Summary

We first covered how to write a C# statement, especially the semi-colon to terminate a statement. All the Component properties shown in the Inspector panel are member variables in the Component's class. Member variables can be shown in the Inspector panel, or accessed by other scripts when the variable is declared as public. The type of data a variable can store is specified when it's declared. Finally, we learned that variable scope determines where it is allowed to be used.

Now that we've learned about variables, we're ready to learn the details of C# methods that will use the variables we create – which is the topic of the next chapter.

主站蜘蛛池模板: 衡山县| 青州市| 辽宁省| 花垣县| 阜宁县| 清水河县| 扎兰屯市| 威远县| 樟树市| 开鲁县| 夏津县| 保德县| 濮阳县| 定襄县| 大冶市| 赤峰市| 乡城县| 平阳县| 昌图县| 中牟县| 彩票| 休宁县| 保山市| 东光县| 内黄县| 麻江县| 星座| 响水县| 万载县| 韶山市| 左贡县| 阿克苏市| 大同市| 山东省| 社旗县| 江陵县| 阳山县| 宁津县| 长葛市| 云霄县| 宁海县|