How to put images in questions of a quiz , where did the database through String [ ] ?
Hi , I'm doing a quiz game in which an image appears and the person guesses what it is, but I made the database of questions by String, but do not know how I can put the image in question . If anyone can help me , my email is yuri.souza@sga.pucminas.br .
SCRIPT QUESTIONS:
private int idTema;
public Text TextPerguntas;
public Text RespostaA;
public Text RespostaB;
public Text RespostaC;
public Text RespostaD;
public Text infoRespostas;
public string[] perguntas; //Armazena todos os pokemons
public string[] alternativaA; //Armazena alternativas A
public string[] alternativaB; //Armazena alternativas B
public string[] alternativaC; //Armazena alternativas C
public string[] alternativaD; //Armazena alternativas D
public string[] corretas; //Armazena alternativas corretas
private int idTextPerguntas;
private float acertos;
private float questoes;
private float media;
private int notaFinal;
// Use this for initialization
void Start () {
idTema = PlayerPrefs.GetInt ("idTema");
idTextPerguntas = 0;
questoes = perguntas.Length;
TextPerguntas.text = perguntas [idTextPerguntas];
RespostaA.text = alternativaA [idTextPerguntas];
RespostaB.text = alternativaB [idTextPerguntas];
RespostaC.text = alternativaC [idTextPerguntas];
RespostaD.text = alternativaD [idTextPerguntas];
infoRespostas.text = "Respondendo " + (idTextPerguntas + 1) + " de " + questoes.ToString();
}
Comment