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

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