private IEnumerator Stop() { yield return(new WaitForSeconds(2f)); _currentClipList.FadeOut(_transitionDuration); _currentClipList = null; }
public void OnChange(PlayAudioClipList variable) { if (_nextClipList != null) { PlayNext(); } }
private void PlayNext() { bool fromBelow = !(_lastClipList != null && _nextClipList != null && _nextClipList.Threshhold < _lastClipList.Threshhold); _currentClipList = _nextClipList.PlayAudioClipList; _currentClipList.Shedule = null; _currentClipList.Play(true, fromBelow); _nextClipList = null; }
private void Start() { _playAudioClipList = GetComponent <PlayAudioClipList>(); _floatScriptable.Subscribe(this, true); }