Example #1
0
        private IEnumerator Stop()
        {
            yield return(new WaitForSeconds(2f));

            _currentClipList.FadeOut(_transitionDuration);
            _currentClipList = null;
        }
Example #2
0
 public void OnChange(PlayAudioClipList variable)
 {
     if (_nextClipList != null)
     {
         PlayNext();
     }
 }
Example #3
0
        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;
        }
Example #4
0
 private void Start()
 {
     _playAudioClipList = GetComponent <PlayAudioClipList>();
     _floatScriptable.Subscribe(this, true);
 }