コード例 #1
0
 private void OnChangeAmbient(ChangeBackgroundSignal signal)
 {
     _currentAmbientIndex++;
     if (_currentAmbientIndex < _ambientSounds.Count)
     {
         _ambientSource.clip = _ambientSounds[_currentAmbientIndex];
         _ambientSource.Play();
     }
 }
コード例 #2
0
ファイル: BackgroundChanger.cs プロジェクト: parnazz/LD48
 private void ChangeBackground(ChangeBackgroundSignal signal)
 {
     StartCoroutine(ChangeBackgroundCoroutine());
 }