예제 #1
0
 /// <summary>
 /// Inform browser score saber data is available.
 /// </summary>
 /// <param name="loader"></param>
 /// <param name="levels"></param>
 private void OnScoreSaberDataDownloaded()
 {
     Logger.Trace("OnScoreSaberDataDownloaded");
     try
     {
         StartCoroutine(_songBrowserUI.AsyncWaitForSongUIUpdate());
     }
     catch (Exception e)
     {
         Logger.Exception("Exception during OnScoreSaberDataDownloaded: ", e);
     }
 }
        /// <summary>
        /// Inform browser score saber data is available.
        /// </summary>
        /// <param name="loader"></param>
        /// <param name="levels"></param>
        private void OnScoreSaberDataDownloaded()
        {
            Logger.Trace("OnScoreSaberDataDownloaded");
            try
            {
                // It is okay if SongDataCore beats us to initialization
                if (_songBrowserUI == null)
                {
                    return;
                }

                StartCoroutine(_songBrowserUI.AsyncWaitForSongUIUpdate());
            }
            catch (Exception e)
            {
                Logger.Exception("Exception during OnScoreSaberDataDownloaded: ", e);
            }
        }