Time for action – create a C# script file

As our Unity project progresses, we will have several folders to organize and store all of our C# files.

  1. Create a new Unity project and name it as State Machine.
  2. Right-click on in the Project tab and create a folder named Code.
  3. Right-click on the Code folder and a create a folder named Scripts.
  4. In the Scripts folder, create a C# Script.
  5. Immediately rename NewBehaviourScript to LearningScript.
    Time for action – create a C# script file

What just happened?

We created one of the Code subfolders, named Scripts, that we will be using to organize our C# files. This folder will contain all of our Unity script files. Later we will create other C# file folders. ...

Get Learning C# by Developing Games with Unity 3D Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.