init
This commit is contained in:
28
Assets/Game/Scripts/Sound.cs
Normal file
28
Assets/Game/Scripts/Sound.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using UnityEngine.Audio;
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class Sound {
|
||||
|
||||
public string name;
|
||||
|
||||
public AudioClip clip;
|
||||
|
||||
[Range(0f, 1f)]
|
||||
public float volume = .75f;
|
||||
[Range(0f, 1f)]
|
||||
public float volumeVariance = .1f;
|
||||
|
||||
[Range(.1f, 3f)]
|
||||
public float pitch = 1f;
|
||||
[Range(0f, 1f)]
|
||||
public float pitchVariance = .1f;
|
||||
|
||||
public bool loop = false;
|
||||
|
||||
public AudioMixerGroup mixerGroup;
|
||||
|
||||
[HideInInspector]
|
||||
public AudioSource source;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user