diff options
Diffstat (limited to 'Assets/Scripts/Sound.cs')
| -rw-r--r-- | Assets/Scripts/Sound.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Assets/Scripts/Sound.cs b/Assets/Scripts/Sound.cs new file mode 100644 index 0000000..d7214a2 --- /dev/null +++ b/Assets/Scripts/Sound.cs @@ -0,0 +1,21 @@ +using UnityEngine;
+using UnityEngine.Audio;
+
+[System.Serializable]
+public class Sound
+{
+ public string name;
+
+ public AudioClip clip;
+
+ [Range(0f, 1f)]
+ public float volume;
+ [Range(.1f, 3)]
+ public float pitch;
+
+ public bool loop;
+
+ [HideInInspector]
+ public AudioSource source;
+
+}
|
