Example #1
0
    private void PlayPeopleEatSound()
    {
        if (_pitchCoolDown < 0)
        {
            _pitch = 1;
        }

        _pitchCoolDown = 1f;

        InfectPeopleSound.pitch = _pitch;
        InfectPeopleSound.CheckIsAidioEnabledAndPlayOneShot();

        if (_pitch < 3)
        {
            _pitch += 0.1f;
        }
    }