浏览代码

[Bot] Automated dotnet-format update

/UI
Ciro Continisio 4 年前
当前提交
d6a98c69
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Audio/AudioManager.cs
  2. 2
      UOP1_Project/Assets/Scripts/Audio/MusicPlayer.cs
  3. 2
      UOP1_Project/Assets/Scripts/Audio/SoundEmitters/SoundEmitter.cs

2
UOP1_Project/Assets/Scripts/Audio/AudioManager.cs


float fadeDuration = 2f;
float startTime = 0f;
if(_musicSoundEmitter != null && _musicSoundEmitter.IsPlaying())
if (_musicSoundEmitter != null && _musicSoundEmitter.IsPlaying())
{
AudioClip songToPlay = audioCue.GetClips()[0];
if (_musicSoundEmitter.GetClip() == songToPlay)

2
UOP1_Project/Assets/Scripts/Audio/MusicPlayer.cs


private void PlayMusic()
{
_playMusicOn.RaisePlayEvent(_thisSceneSO.musicTrack, _audioConfig);
}
}

2
UOP1_Project/Assets/Scripts/Audio/SoundEmitters/SoundEmitter.cs


//Start the clip at the same time the previous one left, if length allows
//TODO: find a better way to sync fading songs
if(startTime <= _audioSource.clip.length)
if (startTime <= _audioSource.clip.length)
_audioSource.time = startTime;
_audioSource.DOFade(1f, duration);

正在加载...
取消
保存