Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Making server requests in a loop

$
0
0
Hi, i have a url to get the score from a user with this user id, so i want to display the scores of the actual user friends, what i do is getting the ids of the friends and then on a for loop i ask for their score with a method

for(inti=0;i<friends.Count;i++){
stringactualId=friends;
StartCoroutine(LoadInfo(actualId));

}

And the method is:
IEnumerator LoadInfo(string id)
{...​


Making server requests in a loop

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>