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); }); }
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); }); }