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; } } }
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; } } }