private void PlayerHasBeenHit(PlayerHasBeenHitEvent e) { DecrementNLives(1); if (m_NLives == 0) { Over(); } }
private void PlayerHasBeenHit(PlayerHasBeenHitEvent e) { DecrementNLives(1); if (m_NLives == 0) { EventManager.Instance.Raise(new GameOverEvent()); } }
private void PlayerHasBeenHit(PlayerHasBeenHitEvent e) { if (!inverunability) { DecrementNLives(1); if (m_NLives <= 0) { if (SfxManager.Instance) { SfxManager.Instance.PlaySfx2D(Constants.PLAYER_HIT_SFX); } Over(); } } }