void updateUI()
 {
     nameView.text        = Util.UppercaseFirst(student.getFirstName()) + " " + Util.UppercaseFirst(student.getLastName());
     numYearLeftView.text = student.getNumYearLeft() + " years left";
     selectButton.GetComponentInChildren <Button>().onClick.AddListener(() => {
         select(student);
     });
 }
Esempio n. 2
0
 void updateUI()
 {
     nameView.text        = Util.UppercaseFirst(student.getFirstName()) + " " + Util.UppercaseFirst(student.getLastName());
     numYearLeftView.text = student.getNumYearLeft() + " years left";
     fireButton.GetComponentInChildren <Button>().onClick.AddListener(() => {
         supervisor.fireAPhDStudent(student);
         Destroy(gameObject);
     });
 }