//----------------------------------------------------------------------------------------------------------------------------------------------// public void PopulateList() { foreach (Transform child in content) { Destroy(child.gameObject); } DataRef.AllUsers().GetValueAsync().ContinueWith(async(task) => { await new WaitForUpdate(); DataSnapshot snapshot = task.Result; foreach (DataSnapshot user in snapshot.Children) { InstantiateUser(user.Child("Username").Value.ToString(), user.Child("PictureID").Value.ToString(), int.Parse(user.Child("DonationTotal").Value.ToString())); } OrganiseList(); }); }