Game Development Reference
In-Depth Information
7. Now create a new JavaScript file in the Script folder and name it Dis-
playGUI .
8. Inside the script we need to define a GUISkin variable for the project; add
the following lines to the top of the newly created script:
var myGUISkin : GUISkin;
9. Save this script for now, we will add more lines later.
10. The next step is to add a GameObject to the scene to attach the GUI script
to. Create an empty GameObject into the scene, name it GameMaster and
add the DisplayGUI script to it.
11. Now drag the myGUI asset from the Project panel into the myGUI variable
inside the script, as shown in the following screenshot:
Search WWH ::




Custom Search