private IEnumerator Open() { _basicAudio.Stop(); _basicAudio.PlayOneShot(_audioLatch); yield return(new WaitForSeconds(0.5f)); foreach (Door door in _doors) { door.Open(); } _basicAudio.PlayOneShot(_audioHiss); }
public void StopAudio() { _footstepBasicAudio.Stop(); basicAudio.Pause(); }