private void UpdateCountingDown() { if (GetPlayersInElevator() < PlayersToTriggerStart) { _state = ElevatorState.WaitingForPlayers; } _startCountdown -= Time.deltaTime; if ((int)_startCountdown != _lastStartCountdownBeep) { _lastStartCountdownBeep = (int)_startCountdown; if ((int)_startCountdown == 0) { _audioSync.PlayWorldSound(Sounds.CountdownFinalBeep); } else { _audioSync.PlayWorldSound(Sounds.CountdownBeep); } } if (_startCountdown < 0) { BeginClosingBackDoor(); } }
void TriggerSlapSound() { _audioSync.PlayWorldSound(Sounds.Slap); }
private void RpcPlayerHasEnteredArena() { DamagePercent = 0; _audioSync.PlayWorldSound(vThirdPersonController.Sounds.EnterArena); _playerName.UpdateDamagePercent(DamagePercent); }