Exemplo n.º 1
0
    private IEnumerator DelayedLoad()
    {
        StartCoroutine(topTracksScript.loadTopTracks());
        Debug.Log("Loading Top Tracks");
        yield return(new WaitForSeconds(15));

        StartCoroutine(topArtistsScript.loadTopArtists());
        Debug.Log("Loading Top Artists");
        yield return(new WaitForSeconds(15));

        StartCoroutine(featuredPlaylistTabScript.loadFeaturedPlaylists());
        Debug.Log("Loading Featured Playlists");
        yield return(new WaitForSeconds(15));

        StartCoroutine(newAlbumReleasesScript.loadNewAlbumReleases());
        Debug.Log("Loading New Album Releases");
        yield return(new WaitForSeconds(15));

        StartCoroutine(userPlaylists.LoadUserPlaylists());
        Debug.Log("Loading User Playlists");
        yield return(new WaitForSeconds(15));

        StartCoroutine(usersFollowedArtistsScript.LoadUsersFollowedArtists());
        Debug.Log("Loading Users Followed Artists");
        yield return(new WaitForSeconds(15));

        StartCoroutine(chartScript.LoadChartTracks());
        Debug.Log("Loading Chart Tracks");
        yield return(new WaitForSeconds(15));

        StartCoroutine(recentlyPlayedScript.LoadRecentlyPlayed());
        Debug.Log("Loading Recently Played");
        yield return(new WaitForSeconds(15));
    }
Exemplo n.º 2
0
    /// <summary>
    /// Loads everything by making calls to spotify
    /// </summary>
    public void Reload()
    {
        Debug.Log("Reload called");
        ClearData();

        StartCoroutine(topTracksScript.loadTopTracks());
        StartCoroutine(topArtistsScript.loadTopArtists());
        StartCoroutine(featuredPlaylistTabScript.loadFeaturedPlaylists());
        StartCoroutine(newAlbumReleasesScript.loadNewAlbumReleases());
        StartCoroutine(userPlaylists.LoadUserPlaylists());
        StartCoroutine(usersFollowedArtistsScript.LoadUsersFollowedArtists());
        StartCoroutine(chartScript.LoadChartTracks());
    }