Пример #1
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();
        }
    }
Пример #2
0
    // Switches control from SPIN to DASS.
    private void StartDASS()
    {
        instructions.text = @"INSTRUCTIONS: Please read each statement and choose the answer which indicates how much the statement applied to you over the past week. 
There are no right or wrong answers. Do not spend too much time on any statement.";

        SPIN.SetActive(false);
        DASS.SetActive(true);

        question.text = DASSState.GetQuestion();

        countDownTimer = new System.Diagnostics.Stopwatch();

        reactionTimer.Reset();
        reactionTimer.Start();
    }