Exemplo n.º 1
0
        public Questions AskQuestion(AudioSource audioSource)
        {
            Questions currentQuestion = questions.GetNextQuestion();

            if (currentQuestion != null)
            {
                Debug.Log("Question: " + currentQuestion.QText);
                GuiTextDebug.debug("Question: " + currentQuestion.QText);
                audioSource.clip = Resources.Load("Audio/" + currentQuestion.QAudio) as AudioClip;
                audioSource.Play();
            }
            else
            {
                Debug.Log("Failed to get Question.");
            }
            return(currentQuestion);
        }