Exemple #1
0
    // Represents a SPIN button click. On click, inserts the associated answer into the database and calls SPINClick().
    public void SPINNotAtAll()
    {
        if (SPINState.Equals(SPINEnum.END))
        {
            return;
        }

        Debug.Log("Not at all");
        data.Add(new SurveyAnswerData(Constants.SPIN_TABLE, question.text, "Not at all", reactionTimer.ElapsedMilliseconds / 1000.0));

        SPINClick();
    }
Exemple #2
0
    // Move through the SPIN survey until the end. Then switch to the DASS survey.
    private void SPINClick()
    {
        Debug.Log(reactionTimer.ElapsedMilliseconds / 1000.0 + " seconds");

        SPINState = SPINState.next();

        if (!SPINState.Equals(SPINEnum.END))
        {
            question.text = SPINState.GetQuestion();
            Debug.Log(SPINState.GetQuestion());

            reactionTimer.Reset();
            reactionTimer.Start();
        }
        else
        {
            question.text = "~~~Starting DASS Survey~~~";
            Invoke("StartDASS", 3f);
        }
    }