private void handleScoreChanged(int points, SoundConstants.Sfx sound, LightingConstants.Lfx lightEffect)
 {
     if (points > 0)
     {
         GameManager.getInstance().AddScore(points);
     }
     if (sound != SoundConstants.Sfx.None)
     {
         SoundManager.PlaySfx(sound);
     }
     if (lightEffect != LightingConstants.Lfx.None)
     {
         LightManager.PlaySequence(lightEffect);
     }
 }
Beispiel #2
0
 private void playSfx(SoundConstants.Sfx sound)
 {
     _soundDriver.PlaySfx((int)sound);
 }
Beispiel #3
0
 internal static void PlaySfx(SoundConstants.Sfx sound)
 {
     getInstance().playSfx(sound);
 }