// Represents a DASS button click. On click, inserts the associated answer into the database and calls DASSClick(). public void DASSNotAtAll() { if (DASSState.Equals(DASSEnum.END)) { return; } Debug.Log("Did not apply at all"); data.Add(new SurveyAnswerData(Constants.DASS_TABLE, question.text, "Did not apply at all", reactionTimer.ElapsedMilliseconds / 1000.0)); DASSClick(); }
// Move through the DASS survey until the end. Then start WSAP. private void DASSClick() { Debug.Log(reactionTimer.ElapsedMilliseconds / 1000.0 + " seconds"); DASSState = DASSState.next(); if (!DASSState.Equals(DASSEnum.END)) { question.text = DASSState.GetQuestion(); Debug.Log(DASSState.GetQuestion()); reactionTimer.Reset(); reactionTimer.Start(); } else { Invoke("NextScene", COUNT_DOWN); running = false; countDownTimer.Start(); } }