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

Chapter 3. 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 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 to write 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
主站蜘蛛池模板: 达拉特旗| 自治县| 枞阳县| 澄迈县| 芷江| 武邑县| 南乐县| 梁平县| 竹山县| 子洲县| 偏关县| 赤城县| 溧水县| 康保县| 马龙县| 乐清市| 平罗县| 垦利县| 江达县| 长治县| 西和县| 满洲里市| 鄯善县| 阿拉善左旗| 社旗县| 神木县| 吕梁市| 青田县| 松滋市| 甘洛县| 潮安县| 多伦县| 鄢陵县| 马公市| 寿宁县| 嘉善县| 长宁区| 潜山县| 邯郸县| 丁青县| 建宁县|