diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-04-20 23:26:03 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-04-20 23:26:03 -0400 |
| commit | ee3e85bc67a0f6f1761c11ea452d7bb862105930 (patch) | |
| tree | 8d065b97d833aba9761aacaeac7bc887f0b76af3 /Assets/Scripts/Sound.cs | |
| parent | 7c1e566113d59699af1624186c64eca67f063fc6 (diff) | |
| download | Project-Sandbox-ee3e85bc67a0f6f1761c11ea452d7bb862105930.tar.gz Project-Sandbox-ee3e85bc67a0f6f1761c11ea452d7bb862105930.tar.bz2 Project-Sandbox-ee3e85bc67a0f6f1761c11ea452d7bb862105930.zip | |
Audio works :D
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;
+
+}
|
