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

Getting into the Details of Variables

Initially, computer programming appears difficult to beginners due to the way in which words are used in code. It's not the actual words that cause the problem because, for most of the part, many of the words are the same as those we use in our everyday life. C# is not a foreign language. The main problem is that the words simply don't read like the typical sentences that we are all used to. You know how to say words and how to spell words. What you don't know is where and why you need to put them in that crazy-looking grammar, that is, the syntax that makes up a C# statement.

In this chapter, you will learn some of the basic rules of writing a C# statement. We will also introduce many of the words that C# uses and the proper placement of these words in C# statements when we create our variables.

In this chapter, we will cover the following topics:

  • Writing C# statements properly
  • Using C# syntax to write variable statements
  • The GameObject component's properties
  • Using public variables for the Unity Inspector panel
  • Naming a variable properly
  • Declaring a variable for the type of data it will store
主站蜘蛛池模板: 崇明县| 昆山市| 望江县| 石屏县| 五常市| 祁阳县| 蒲城县| 邳州市| 鲁山县| 香河县| 曲麻莱县| 赤峰市| 和平县| 南岸区| 新安县| 鄂州市| 称多县| 彩票| 中西区| 延川县| 永顺县| 万州区| 锡林浩特市| 淮安市| 固镇县| 南雄市| 民县| 腾冲县| 汶上县| 龙井市| 安福县| 济宁市| 三门峡市| 黄梅县| 娄烦县| 壤塘县| 内丘县| 师宗县| 辽阳市| 平武县| 高雄市|