// Token: 0x060037E3 RID: 14307 RVA: 0x0018C5CC File Offset: 0x0018A9CC
 private static void refreshSongs()
 {
     PlayerBarricadeStereoUI.songs.Clear();
     Assets.find <StereoSongAsset>(PlayerBarricadeStereoUI.songs);
     PlayerBarricadeStereoUI.songsBox.remove();
     PlayerBarricadeStereoUI.songsBox.area = new Rect(0f, 0f, 5f, (float)(PlayerBarricadeStereoUI.songs.Count * 30));
     for (int i = 0; i < PlayerBarricadeStereoUI.songs.Count; i++)
     {
         StereoSongAsset stereoSongAsset = PlayerBarricadeStereoUI.songs[i];
         SleekButton     sleekButton     = new SleekButton();
         sleekButton.positionOffset_Y = i * 30;
         sleekButton.sizeOffset_X     = -30;
         sleekButton.sizeOffset_Y     = 30;
         sleekButton.sizeScale_X      = 1f;
         SleekButton sleekButton2    = sleekButton;
         Delegate    onClickedButton = sleekButton2.onClickedButton;
         if (PlayerBarricadeStereoUI.< > f__mg$cache0 == null)
         {
             PlayerBarricadeStereoUI.< > f__mg$cache0 = new ClickedButton(PlayerBarricadeStereoUI.onClickedPlayButton);
         }
         sleekButton2.onClickedButton = (ClickedButton)Delegate.Combine(onClickedButton, PlayerBarricadeStereoUI.< > f__mg$cache0);
         PlayerBarricadeStereoUI.songsBox.add(sleekButton);
         TranslationLeaf leaf = Translator.getLeaf(stereoSongAsset.title);
         if (leaf != null)
         {
             sleekButton.text = leaf.text;
         }
     }
 }
        // Token: 0x060037E6 RID: 14310 RVA: 0x0018C760 File Offset: 0x0018AB60
        private static void onClickedPlayButton(SleekButton button)
        {
            int num = PlayerBarricadeStereoUI.songsBox.search(button);

            if (num >= PlayerBarricadeStereoUI.songs.Count)
            {
                return;
            }
            StereoSongAsset stereoSongAsset = PlayerBarricadeStereoUI.songs[num];

            if (PlayerBarricadeStereoUI.stereo != null)
            {
                BarricadeManager.updateStereoTrack(PlayerBarricadeStereoUI.stereo.transform, stereoSongAsset.GUID);
            }
        }
 // Token: 0x060021EF RID: 8687 RVA: 0x000BB590 File Offset: 0x000B9990
 public void updateTrack(Guid newTrack)
 {
     this.track.GUID = newTrack;
     if (this.audioSource != null)
     {
         StereoSongAsset stereoSongAsset = Assets.find <StereoSongAsset>(this.track);
         if (stereoSongAsset != null)
         {
             this.audioSource.clip = Assets.load <AudioClip>(stereoSongAsset.song);
         }
         else
         {
             this.audioSource.clip = null;
         }
         if (this.audioSource.clip != null)
         {
             this.audioSource.Play();
         }
         else
         {
             this.audioSource.Stop();
         }
     }
 }