Esempio n. 1
0
    void UploadSceneResult()
    {
        DataStore       dataControl  = GameObject.FindObjectOfType <DataStore>();
        Report_template scene_result = new Report_template(currentSceneNum, timeElapsed, totalNumber, remaining_num, incorrect_view, incorrect_voice, testSkipped);

        dataControl.pushResult(scene_result);
    }
    void addToScoreBoard(string testName, Report_template result)
    {
        GameObject go = (GameObject)Instantiate(scoreEntry);

        go.transform.SetParent(this.transform, false);
        go.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f);

        go.transform.Find("TestName").GetComponent <Text>().text        = testName;
        go.transform.Find("TimeTaken").GetComponent <Text>().text       = result.Timespend.ToString();
        go.transform.Find("IncorrectViews").GetComponent <Text>().text  = result.Incorrect_staring.ToString();
        go.transform.Find("IncorrectSpeaks").GetComponent <Text>().text = result.Incorrect_voice.ToString();
    }
Esempio n. 3
0
 // Update is called once per frame
 public void pushResult(Report_template result)
 {
     testResults.Add(result);
 }