private void ChangePerson() { if (Persons.Count != 0) { UserDto userDto = Persons.Dequeue(); Persons.Enqueue(userDto);//put user at the end of the list so the list doesn't get empty textUsers.ElementAt(listIndex).color = Color.white; listIndex += 1; if (listIndex > Persons.Count - 1 || listIndex > 4) { listIndex = 0; } textUsers.ElementAt(listIndex).color = Color.yellow; panelCurrentUser.SetActive(true); userName.text = userDto.firstname + " " + userDto.lastname; string birthday = userDto.Birthday().ToString(); int index = birthday.LastIndexOf("/") + 5; userBirthday.text = "Birthday: " + birthday.Substring(0, index); userOccupation.text = "Occupation: " + userDto.professionalOccupation; tweet.text = userDto.tweets.First().tweet; //tweets = userDto.tweets; //test = jsonResults; //string recognized = userDto.firstname + " " + userDto.lastname + " was here!\n"; }/* * else * { * panelCurrentUser.SetActive(false); * }*/ }