Learning C# by Developing Games with Unity 5.x(Second Edition)
上QQ阅读APP看书,第一时间看更新

Creating a C# script file

We are now ready to create a new C# file in our learning project:

  1. Create a new Unity project and name it Learning Project.
  2. Right-click on the Project tab and create a folder named Scripts.
  3. Right-click on the Scripts folder, as shown in the following screenshot, and create a C# script:
  4. Immediately rename NewBehaviourScript to LearningScript.

We have created the Scripts folder, which we will be using to organize our C# files. This folder will contain all of our Unity script files. We have also used Unity to create a C# script file named LearningScript.cs.