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