private void StoreQuestionList(object sender, SurveyListEventArgs e) { _surveyQuestionList = e.QuestionsList; try { _surveyNumber = ParticipantBehavior.Participant.CurrentSurvey; } catch (NullReferenceException exception) { Debug.Log(exception.Message); _surveyNumber = GameObject.Find("EventSystem") .GetComponent <SurveyFetch>().TestFetchingSurvey; Debug.Log( string.Format( "Pushing default survey {0}, because the participant has not been made.", _surveyNumber)); } }
/// <summary> /// Recieves a list which to load. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnLoad(object sender, SurveyListEventArgs e) { Debug.Log("Event started"); Loading(e.QuestionsList); }