Exemplo n.º 1
0
        public static void PlaySong(ESong ID)
        {
            if (GlobalSetting.IsSoundBG)
            {
                switch (ID)
                {
                case ESong.SONG_INTRO:
                    if (m_IntroSong != null)
                    {
                        MediaPlayer.Play(m_IntroSong);
                    }
                    break;

                case ESong.SONG_THEMSONG_OW:
                    if (m_ThemeSong != null)
                    {
                        MediaPlayer.Play(m_ThemeSong);
                    }
                    break;

                default:
                    break;
                }
            }
        }
Exemplo n.º 2
0
 public void PlaySong(ESong id)
 {
     MediaPlayer.IsRepeating = IsRepeating;
     // Check if sound option is OFF
     if (Global.SOUND)
     {
         switch (id)
         {
         case ESong.Background:
             if (bgSong != null)
             {
                 MediaPlayer.Play(bgSong);
                 MediaPlayer.Volume = 2.0f;
             }
             break;
         }
     }
 }
Exemplo n.º 3
0
 public static void PlaySong(ESong ID)
 {
     if (GlobalSetting.IsSoundBG)
     {
         switch (ID)
         {
             case ESong.SONG_INTRO:
                 if (m_IntroSong != null)
                 {
                     MediaPlayer.Play(m_IntroSong);
                 }
                 break;
             case ESong.SONG_THEMSONG_OW:
                 if (m_ThemeSong != null)
                 {
                     MediaPlayer.Play(m_ThemeSong);
                 }
                 break;
             default:
                 break;
         }
     }
 }