浏览代码

[Bot] Automated dotnet-format update

/main
Ciro Continisio 4 年前
当前提交
a1c2234b
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Audio/AudioCueOnTriggerEnter.cs
  2. 3
      UOP1_Project/Assets/Scripts/Audio/AudioData/AudioConfigurationSO.cs
  3. 2
      UOP1_Project/Assets/Scripts/Audio/AudioManager.cs

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


[SerializeField] private string _tagToDetect = "Player";
private void OnTriggerEnter(Collider other)
{
if(other.gameObject.CompareTag(_tagToDetect))
if (other.gameObject.CompareTag(_tagToDetect))
GetComponent<AudioCue>().PlayAudioCue();
}
}

3
UOP1_Project/Assets/Scripts/Audio/AudioData/AudioConfigurationSO.cs


// Simplified management of priority levels (values are counterintuitive, see enum below)
[SerializeField] private PriorityLevel _priorityLevel = PriorityLevel.Standard;
[HideInInspector] public int Priority
[HideInInspector]
public int Priority
{
get { return (int)_priorityLevel; }
set { _priorityLevel = (PriorityLevel)value; }

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


/// </summary>
void OnValidate()
{
if(Application.isPlaying)
if (Application.isPlaying)
{
SetGroupVolume("MasterVolume", _masterVolume);
SetGroupVolume("MusicVolume", _musicVolume);

正在加载...
取消
保存