private void Done() { ++events; if (events == 2) { Debug.Log("Survey was ended by SurveyEnd"); SceneFlowController.LoadNextScene(); } }
/* * private void OnGUI() * { * var e = Event.current; * if (e.isKey) * if (e.keyCode == KeyCode.C && hardcodedQueryNumber <= nLoadedQueries) * { * Debug.Log(_queryList.Count); * for (; _questionIndex < _queryList.Count() - 1;) * { ++_questionIndex; * UpdateLiveFeed(); * } * } * } */ private void GoToNextScene() { Debug.Log("Ending Transparency"); EventManager.OnEnd(); SceneFlowController.LoadNextScene(); //Participant.Instance.CurrentSurvey += 1; //SceneManager.getSurveyName(); // SceneManager.LoadScene( // ParticipantBehavior.Instance.CurrentMission == 6 // ? "FinalScene" // : "MissionScene"); //_nextButton.Disable(); }
public void GatherAnswers(ref List <GameObject> go, ref List <QuestionDetails> surveyQuestionList, int tempSurveyNumber) { _surveyNumber = tempSurveyNumber; foreach (var g in go) { var temp = surveyQuestionList[int.Parse(g.name)]; //Debug.Log(surveyQuestionList[int.Parse(g.name)].QuestionId + //" is question id"); //Debug.Log(surveyQuestionList[int.Parse(g.name)].Type + //" is question type"); switch (temp.QuestionType) { case "FreeResponse": FreeResponseGetAnswer(g, ref temp); break; case "Multiple": MultipleGetAnswer(g, ref temp); break; case "Scalar": ScalarGetAnswer(g, ref temp); break; case "Numerical": NumericGetAnswer(g, ref temp); break; //special cases bellow case "Debrief": Debrief(g, ref temp); //Debug.Log("Debrief"); StartCoroutine(UploadPreferredLvlOfAutonomy(temp)); break; case "Intro": continue; case "Outro": continue; case "IfYesRespond": IfYesRespondGetAnswer(g, ref temp); break; case "IfNoRespond": IfNoRespondGetAnswer(g, ref temp); break; case "IfScalarLessThan3Respond": IfScalarLessThan3RespondGetAnswer(g, ref temp); break; case "TLX": ScaleGetAnswer(g, ref temp); break; case "PickAll": PickAllGetAnswer(g, ref temp); break; } //Debug.Log(surveyQuestionList[int.Parse(g.name)].SelectedAnswer + // " is answer"); UploadQuery(ref temp); //Debug.Log(currentDetails.QuestionString + " is question string"); //Debug.Assert(false, "Question type does not exist"); } //Debug.Log("End of Survey"); //Will go back to the QueryScene EventManager.OnEnd(); SceneFlowController.LoadNextScene(); }