/// <summary>
 ///     Starts the visibility of the first question and the button correlated with going to next question.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StartSurvey(object sender, EventArgs e)
 {
     EventManager.SurveyReady -= StartSurvey;
     Total         = gameObject.transform.childCount - 1;
     DisplayNumber = 0;
     ButtonEventManager.OnBeginQuestion();
     DisplayOn();
 }
 /// <summary>
 ///     Displays current questinon.
 /// </summary>
 public override void DisplayOn()
 {
     gameObject.transform.GetChild(DisplayNumber).gameObject
     .SetActive(true);
     if (DisplayNumber == Total)
     {
         ButtonEventManager.OnContinueQuestion();
     }
 }
 private void UploadedMessege(string messege)
 {
     if (messege == SurveyQuestionPush.AnswerMessege)
     {
         Debug.Log("Question answered.");
         DisplayOff();
         ++DisplayNumber;
         DisplayOn();
     }
     else if (messege == SurveyQuestionPush.NoAnswerMessege)
     {
         Debug.Log("Question not answered");
         ButtonEventManager.OnQuestionNotComplete();
     }
 }
 /// <summary>
 ///     Stops displaying current question.
 /// </summary>
 public override void DisplayOff()
 {
     ButtonEventManager.OnNextQuestion();
     gameObject.transform.GetChild(DisplayNumber).gameObject
     .SetActive(false);
 }