// Update is called once per frame void Update() { questionDataBase = dir.GetComponent <Director> ().questionDataBase; this.GetComponent <Text> ().text = questionDataBase.getQuizLists() [dir.GetComponent <Director> ().num].getQuestion(); }
public void answerMaru() { ans = (Quiz.MaruBatu) 0; if (ans == questionDataBase.getQuizLists() [num].getAnswer()) { result [0] += questionDataBase.getQuizLists() [num].getUn(); result [1] += questionDataBase.getQuizLists() [num].getSt(); result [2] += questionDataBase.getQuizLists() [num].getYf(); result [3] += questionDataBase.getQuizLists() [num].getYp(); result [4] += questionDataBase.getQuizLists() [num].getKo(); isCorrect = 0; } else { isCorrect = 1; } }