public void ShowResultsOf(ClassAluno student)
 {
     foreach (Transform children in solutionsParent.transform)
     {
         Destroy(children.gameObject);
     }
     foreach (var solution in htpiController._resolucoes.Where(x => x.Key.student == student))
     {
         GameManager.PlayerData.Points += feedbackController.results[solution.Key] / 5;
         var resultPanel = Instantiate(solutionPanelPrefab, solutionsParent.transform);
         resultPanel.SetStars(starByPoints[feedbackController.results[solution.Key]]);
         resultPanel.SetText(solution.Key.descricao, solution.Value.nome);
     }
 }
    public void PopulateDemandList(ClassAluno student)
    {
        DemandList.Clear();
        var list = new List <Selectable>();

        foreach (var demand in DemandByStudentList[student])
        {
            var button = Instantiate(DemandPrefab);
            button.Demanda = demand;
            if (HtpiController._resolucoes[demand] != null)
            {
                button.GetComponent <Button>().interactable = false;
                button.GetComponent <BotaoDemandaHTPI>().Select();
            }
            list.Add(button.GetComponent <Button>());
            button.GetComponent <Button>().onClick.AddListener(() => HtpiController.SelectDemand(button));
        }
        DemandList.AddList(list);
    }
 public void SetAluno(ClassAluno aluno)
 {
     nome.SetText(aluno.nome);
     portrait.Student = aluno;
     description.SetText(aluno.descricao);
 }