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

The namespace – highlighted in blue

The namespace is simply an organizational construct. It helps organize parts of code. Don't worry too much about it now. We won't need to create them anytime soon. All we will need to know for now is how many namespaces we are using in our script.

In our script, we can see these two lines:

using UnityEngine; 
using System.Collections; 

The preceding two lines simply mean that our script will be using the UnityEngine and System.Collections namespaces, and we will have access to all parts of these libraries. These two namespaces are added to any new C# script by default, and we will use them in most of our cases.

主站蜘蛛池模板: 延吉市| 布尔津县| 襄汾县| 冕宁县| 邢台县| 永康市| 咸丰县| 乳源| 山西省| 麻城市| 赤壁市| 光泽县| 阿鲁科尔沁旗| 奎屯市| 临澧县| 昌黎县| 泸水县| 青州市| 遂川县| 苗栗县| 共和县| 忻州市| 大足县| 乌恰县| 全州县| 崇阳县| 拉孜县| 高雄市| 崇州市| 舟曲县| 任丘市| 花莲市| 冷水江市| 凉山| 麻栗坡县| 大邑县| 高邮市| 惠安县| 读书| 江油市| 泊头市|