예제 #1
0
 public static void SwitchToNextSong()
 {
     try
     {
         Control.current_song_int = NextSongNumber();
         NextTrack();
         RMMTimer.TimerStop();
         RMMTimer.Start();
     }
     catch (Exception e)
     {
         uConsole.Log("[RMM] ENCOUNTERED ISSUE IN .SwitchToNextSong");
         Debug.Log("[RMM] ENCOUNTERED ISSUE IN .SwitchToNextSong");
         Debug.Log(e);
         Thread.Sleep(2000);
         SwitchToNextSong();
     }
     //MenuManager.audio.MusicVolume
     //MenuManager.audio
     //GameManager.m_game_state
 }
예제 #2
0
        // since you now are outside the unity object range now you have to listen for the overload audio volume

        public static void StartPlayingMenuMusic()
        {
            Control.current_song_int = RandomNumber(0, Control.OverloadAudioNames.Length - 1);
            NextTrack();
            RMMTimer.Start();
        }