Game Development Reference
In-Depth Information
public ItemsContainer armors;
public ItemsContainer accessories;
public ItemsContainer items;
public SkillsContainer skills;
void Start () {
_isMenuOpen = false;
weapons.Init(true);
armors.Init(true);
accessories.Init(true);
items.Init(false);
skills.Init(skillBoxTexture);
}
9. Lastly, we go to the StatusWindow() function in this SkillsCointainer
class, and add the following highlighted code:
// Unity JavaScript user:
private function StatusWindow() : void {
GUI.Label(LUC_RECT, currentLUC.ToString(), "Text
Amount");
GUI.Label(WEAPON_LABEL_RECT, weapons.guiContent,
"Text Item");
GUI.Label(ARMOR_LABEL_RECT, armors.guiContent,
"Text Item");
GUI.Label(ACCESS_LABEL_RECT,
accessories.guiContent, "Text Item");
GUI.Label(SKILL_TEX_RECT, skills.guiContent, "Text
Item");
}
// C# user (put the code inside the class):
void StatusWindow() {
GUI.Label(LUC_RECT, currentLUC.ToString(), "Text
Search WWH ::




Custom Search