void AnswerDisplay(bool Correct) { Speak(CurrentQuestion.CorrectAnswer); if (Correct) { Score += 10; SoundController.PlaySoundCorrect(); //for Full Game Controller if (!IsMainController) { GameControllerScript.Score += 10; } HeaderPanel.GetComponent <Image>().color = CorrectColor; TextHeaderPanel.Text = CorrectText; } else { SoundController.PlaySoundWrong(); HeaderPanel.GetComponent <Image>().color = WrongColor; TextHeaderPanel.Text = WrongText; TextTitle.SetActive(true); TextCorrectAnswer.SetActive(true); } ButtonAnswer.transform.GetChild(0).GetComponent <ArabicText>().Text = NewButtonText; TextAnswer.readOnly = true; ChangeStars(); }
void NextQuestion() { SpeakBTN.color = SpeakOldColor; HeaderPanel.GetComponent <Image>().color = OldHeaderPanelColor; TextHeaderPanel.Text = OldTextHeaderPanel; ButtonAnswer.transform.GetChild(0).GetComponent <ArabicText>().Text = OldButtonText; TextAnswer.text = ""; TextAnswer.readOnly = false; ButtonAnswer.SetActive(false); TextTitle.SetActive(false); TextCorrectAnswer.SetActive(false); GetQuestionFromList(); }