Exemple #1
0
 void LoadTotalData()
 {
     Utils.RemoveAllChildsIn(container);
     foreach (ResultsData.Participante data in Data.Instance.resultsData.GetOrderByScoreGeneral())
     {
         ResultViewLine newLine = Instantiate(line);
         newLine.transform.SetParent(container);
         string uid       = data.uid;
         int    correctas = data.totalCorrect;
         float  timer     = data.totalTimeCorrect;
         newLine.Init(uid, ResultViewLine.types.ALL, correctas, timer);
         newLine.transform.transform.localScale = Vector3.one;
     }
 }
Exemple #2
0
    void LoadDataForQuestion(int questionID)
    {
        Utils.RemoveAllChildsIn(container);
        int id = questionID - 1;

        foreach (ResultsData.Participante data in Data.Instance.resultsData.GetOrderByQuestionScore(id))
        {
            ResultViewLine newLine = Instantiate(line);
            newLine.transform.SetParent(container);
            string uid       = data.uid;
            int    respuesta = data.respuestas[id].respuesta;
            float  timer     = data.respuestas[id].timer;
            newLine.Init(uid, ResultViewLine.types.SINGLE, respuesta, timer);
            newLine.transform.transform.localScale = Vector3.one;
        }
    }