Пример #1
0
    // Use this for initialization
    void Start()
    {
        helper =  this.gameObject.AddComponent<BackEndHelper>();
        finalScore = (100 - (IM_PianoManager.pianoMistakes * (10)));

        helper.AddModel(new Activity(0, "Immediate_Memory", System.DateTime.Now, finalScore, 0.0f), BackEndHelper.current_patient.id);
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        helper = this.gameObject.AddComponent<BackEndHelper>();

        finalScore = (100 - (GameManager.mistake * (10)));
        helper.AddModel(new Activity(0, "Auditory_Processing", System.DateTime.Now, finalScore, 0.0f), BackEndHelper.current_patient.id);
    }
    // Use this for initialization
    void Start()
    {
        score = 100f * (GenerateFormula.correctEquations) / (GenerateFormula.equationsGenerated + (GenerateFormula.equationsMistakes + (GenerateFormula.equationsTimedOut * 2)));
        equationsGeneratedString = "Number of Equations: " + GenerateFormula.equationsGenerated.ToString ();
        correctEquationString = "Number of Correct Answers: " + GenerateFormula.correctEquations.ToString ();
        equationsMistakeString = "Number of Mistakes: " + GenerateFormula.equationsMistakes.ToString ();
        equationsTimedOutString = "Number of Timed Out Equations: " + GenerateFormula.equationsTimedOut.ToString ();
        result = GetComponent<Text>();

        helper = this.gameObject.AddComponent<BackEndHelper>();
        helper.AddModel(new Activity(0, "Calculation", System.DateTime.Now, score, 0.0f), BackEndHelper.current_patient.id);
    }
Пример #4
0
    // Use this for initialization
    void Start()
    {
        helper = this.gameObject.AddComponent<BackEndHelper>();

        totalQuestions = DifficultySelection.numberOfQuestions;
        for (int i = 0; i < totalQuestions; i++) {
            if (DifficultySelection.answerSelected [i, 1].CompareTo (DifficultySelection.questionList [i].correct_answer) == 0) {
                correct += 1f;
            }
        }

        score = (int) ((correct / totalQuestions) * 100);

        helper.AddModel(new Activity(0, "Reading_Comprehension", System.DateTime.Now, score * 1.0f, 0.0f), BackEndHelper.current_patient.id);
    }