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

Chapter 3. Getting into the Details of Variables

Initially, computer programming appears difficult to beginners due to the fact how words are used in code. It's not the actual words that cause the problem because, for the most part, many of the words are the same words that 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 we are all used to. You know how to say the words and you know how to spell the 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, we will learn some of the basic rules for writing a C# statement. We will also be introduced to many of the words that C# uses and the proper placement of these words in the 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

Ok, let's learn some programming grammar, otherwise known as C# syntax.

主站蜘蛛池模板: 金川县| 金湖县| 琼海市| 绥江县| 获嘉县| 襄汾县| 乐都县| 大理市| 洪雅县| 安庆市| 广德县| 包头市| 新化县| 平陆县| 太湖县| 富源县| 孙吴县| 资溪县| 黄梅县| 堆龙德庆县| 古蔺县| 厦门市| 石棉县| 上饶市| 北票市| 宜丰县| 丘北县| 日土县| 龙川县| 保山市| 普定县| 泸定县| 竹北市| 高要市| 明水县| 资兴市| 青州市| 克什克腾旗| 静乐县| 丰顺县| 永福县|