Exemple #1
0
    private IEnumerator Open()
    {
        _basicAudio.Stop();
        _basicAudio.PlayOneShot(_audioLatch);

        yield return(new WaitForSeconds(0.5f));

        foreach (Door door in _doors)
        {
            door.Open();
        }

        _basicAudio.PlayOneShot(_audioHiss);
    }
Exemple #2
0
 public void StopAudio()
 {
     _footstepBasicAudio.Stop();
     basicAudio.Pause();
 }