Hi Guys I’m new on unity and i’m use version 2017
i’m have a test to show some teste using the GuiLayout but wen i’m run the scene , don’nt show nowthing
i’m have a BaseCharacterClass script
// classe default que irá ser executada para todos os persongens do jogo.
// todos eles terão os mesmo atributos sempre.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseCharacterClass : MonoBehaviour {
// Nome e Descrição do Personagem
private string characterClassName;
private string characterClassDescription;
//Atributos de personagens
private int staminia;
private int endurace;
private int strength;
private int intellect;
// codigo pega, armazena e mostra as variveis.
public string CharacterClassName
{
get { return CharacterClassName; }
set { characterClassDescription = value; }
}
public string CharacterClassDescription
{
get { return characterClassDescription; }
set { characterClassDescription = value; }
}
public int Staminia
{
get { return staminia; }
set { staminia = value; }
}
public int Endurace
{
get { return endurace; }
set { endurace = value; }
}
public int Strength
{
get { return strength; }
set { strength = value; }
}
public int Intellect
{
get { return intellect; }
set { intellect = value; }
}
}
After a BaseWarrior Scripting
// Classe base para os Guerreiros do jogo
// Personagem que pode ser escolhido pelo jogador
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseWarriorClass : BaseCharacterClass {
public void WarriorClass()
{
CharacterClassName = “Warrior”;
CharacterClassDescription = “O heroi mais forte e podereso.”;
Staminia = 15;
Endurace = 12;
Strength = 14;
Intellect = 10;
}
}
A BaseMage Scripting
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseMageClass : BaseCharacterClass {
public void MageClass()
{
CharacterClassName = “Mage”;
CharacterClassDescription = “Aquele que pode lançar fetiços.”;
Staminia = 12;
Endurace = 14;
Strength = 10;
Intellect = 15;
}
}
And TestGUI scripting
need show de test with
CharacterClassName =
CharacterClassDescription =
Text but wen i’m run the script on unity the unity don’t show nothing
regards