Ejemplo n.º 1
0
    // 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();
    }
Ejemplo n.º 2
0
    // 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();
        }
    }