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);
     }
 }
예제 #2
0
 private void playSfx(SoundConstants.Sfx sound)
 {
     _soundDriver.PlaySfx((int)sound);
 }
예제 #3
0
 internal static void PlaySfx(SoundConstants.Sfx sound)
 {
     getInstance().playSfx(sound);
 }