LazyBot/Assets/Scripts/Audio/AudioContainer.cs
/// <summary>
/// Instant stops playback of audio.
/// </summary>
/// <param name="index">Index of audio.</param>
/// <param name="audioKey">MD5 hash key of audio.</param>
/// <returns>Is audio was found and stop is executable.</returns>
Instant stops playback of audio.
Instant stops playback of audio .
private bool StopInstant(int index, string audioKey)
        {
            if ((index < 0) ||
                (index >= _audios.Count) ||
                (!_audios[index].ContainAudio(audioKey)))
                return false;
            _audios[index].DestroyAudioSource(audioKey);
            return true;
        }
private bool StopInstant ( int index , string audioKey ) { if ( ( index < 0 ) || ( index >= _audios . Count ) || ( ! _audios [ index ] . ContainAudio ( audioKey ) ) ) return false ; _audios [ index ] . DestroyAudioSource ( audioKey ) ; return true ; }
Instant stops playback of audio.
Instant stops playback of audio .
None
index
int
Index of audio.
Index of audio .
audioKey
string
MD5 hash key of audio.
MD5 hash key of audio .