Exemple #1
0
 private void OnChangeAmbient(ChangeBackgroundSignal signal)
 {
     _currentAmbientIndex++;
     if (_currentAmbientIndex < _ambientSounds.Count)
     {
         _ambientSource.clip = _ambientSounds[_currentAmbientIndex];
         _ambientSource.Play();
     }
 }
Exemple #2
0
 private void ChangeBackground(ChangeBackgroundSignal signal)
 {
     StartCoroutine(ChangeBackgroundCoroutine());
 }