init
This commit is contained in:
commit
341a877b4a
2338 changed files with 1346408 additions and 0 deletions
25
Assets/Scripts/Tools/AudioManager/Sound.cs
Normal file
25
Assets/Scripts/Tools/AudioManager/Sound.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class Sound{
|
||||
[Tooltip("Name of the sound. Each name has to be different between each other.")]
|
||||
public string name;
|
||||
|
||||
public AudioClip clip;
|
||||
|
||||
[System.Serializable] public enum Type {Music, SFX}
|
||||
[Space]
|
||||
[Tooltip("Is it part of the music or the SFX?")] public Type type;
|
||||
|
||||
[Space]
|
||||
[Tooltip("Default volume of the sound.")] [Range(0f, 1f)] public float volume = 1;
|
||||
[Tooltip("Max random volume variation of the sound.")] [Range(0f, 1f)] public float volumeVariance;
|
||||
[Space]
|
||||
[Tooltip("Default pitch of the sound.")] [Range(.1f, 3f)] public float pitch = 1;
|
||||
[Tooltip("Max random pitch variation of the sound.")] [Range(0f, 1f)] public float pitchVariance;
|
||||
|
||||
public bool loop;
|
||||
|
||||
[HideInInspector] public AudioSource source;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue