O'Reilly logo

Unity 4 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the EQUIPMENT tab

This is the last step of our menu. We will create a tab with which the player can change the weapons, armors, accessories, and skills, which will also update variables in the STATUS tab, as we can see in the following screenshot:

Creating the EQUIPMENT tab

Engage thrusters

We will start this section by going to the SkillsContainer script and adding new variables. This is done by performing the following steps:

  1. Open the SkillsContainer script and add the following highlighted code:
    // Unity JavaScript user:
    
    …
    private var _skillBoxTexture : Texture;
    private final var SKILL_BOX_POS : Rect = new Rect (253, 286, 330, 140);
    private final var SKILL_BOX_RECT ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required