death sounds, build sounds, better audio management
This commit is contained in:
parent
a7b2d1854d
commit
9f25844657
26 changed files with 313 additions and 12 deletions
16
Assets/_Project/Scripts/Audio/SoundConfig.cs
Normal file
16
Assets/_Project/Scripts/Audio/SoundConfig.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Assets/_Project/Scripts/Audio/SoundConfig.cs
|
||||
using UnityEngine;
|
||||
|
||||
namespace TD.Audio
|
||||
{
|
||||
[System.Serializable]
|
||||
public struct SoundConfig
|
||||
{
|
||||
public AudioClip clip;
|
||||
[Range(0f, 1f)] public float volume;
|
||||
[Range(0f, 3f)] public float minPitch;
|
||||
[Range(0f, 3f)] public float maxPitch;
|
||||
|
||||
public float RandomPitch() => Random.Range(minPitch, maxPitch);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue