Exemplo n.º 1
0
 void PlaySong()
 {
     if (CurrentStation != 0)
     {
         if (Time.time - StationSongTimes[CurrentStation] < Stations[CurrentStation].Songs[StationSongIndices[CurrentStation]].length)
         {
             ASC_Radio.SetVolume(0.25f);
             ASC_Radio.Sound = Stations[CurrentStation].Songs[StationSongIndices[CurrentStation]];
             ASC_Radio.PlayAtTime(Time.time - StationSongTimes[CurrentStation]);
         }
     }
     else
     {
         ASC_Radio.Stop();
     }
 }