- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 115字
- 2021-07-02 19:59:34
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.
推薦閱讀
- Advanced Splunk
- Node.js Design Patterns
- Git Version Control Cookbook
- 潮流:UI設計必修課
- Developing Mobile Web ArcGIS Applications
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- Mastering PHP Design Patterns
- Java EE 7 Development with NetBeans 8
- Kotlin Standard Library Cookbook
- 軟件測試技術指南
- AppInventor實踐教程:Android智能應用開發前傳
- C語言程序設計教程
- 微服務架構深度解析:原理、實踐與進階
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- 移動增值應用開發技術導論