IEnumerator DownloadAndRenderWorldImages()
    {
        Dictionary <string, Texture2D> imageDict = new Dictionary <string, Texture2D>();

        foreach (ApiWorld w in uploadedWorlds)
        {
            yield return(EditorCoroutine.start(DownloadImageIntoImageDict(w.id, w.thumbnailImageUrl,
                                                                          delegate(Dictionary <string, Texture2D> updatedImageDict) {
                imageDict = updatedImageDict;
            },
                                                                          imageDict
                                                                          )));
        }

        worldImages = imageDict;
    }
 void SetupAvatarData(List <ApiAvatar> avatars)
 {
     uploadedAvatars = avatars;
     uploadedAvatars.Sort((w1, w2) => w1.name.CompareTo(w2.name));
     EditorCoroutine.start(DownloadAndRenderAvatarImages());
 }