Game Development Reference
In-Depth Information
4. Finally, we need to create the
Editor
folder in the
Project
view and create the C#
(for C# user) or JavaScript (for JavaScript user) script and name it
Waypoint-
sContainerEditor
, as we can see in the following screenshot:
This will tell Unity that this script is an editor script and will compile after our game
script, which allows us to get access to
WaypointsContainer
.
Note
For more information on the script compilation order, visit
http://docs.unity3d.com/Docu-
Now, we are ready to begin.