Game Development Reference
In-Depth Information
Here, we just created the necessary variables for our menu window, as shown in
the following screenshot:
Note
The result of
statBox1Texture
,
statBox2Texture
, and
skillBoxTexture
will be
shown in the
Creating the STATUS tab
section.
4. Next, we will set
_isMenuOpen
to
false
in the
Start()
function, because
we don't want our menu to show until the player presses the
M
key, so type the
code as follows:
// Unity JavaScript user:
function Start () : void {
_isMenuOpen = false;
}