summaryrefslogtreecommitdiff
path: root/Assets/Scripts
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-04-21 14:37:09 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-04-21 14:37:09 -0400
commitb6daed0af784f4e9bc13329dd87c671b06ee1c65 (patch)
treec1992e98d3aa3aba021e44d50f1abbc35968dcaa /Assets/Scripts
parentee3e85bc67a0f6f1761c11ea452d7bb862105930 (diff)
downloadProject-Sandbox-b6daed0af784f4e9bc13329dd87c671b06ee1c65.tar.gz
Project-Sandbox-b6daed0af784f4e9bc13329dd87c671b06ee1c65.tar.bz2
Project-Sandbox-b6daed0af784f4e9bc13329dd87c671b06ee1c65.zip
added new audio
Diffstat (limited to 'Assets/Scripts')
-rw-r--r--Assets/Scripts/AudioManager.cs5
-rw-r--r--Assets/Scripts/Sound.cs2
2 files changed, 5 insertions, 2 deletions
diff --git a/Assets/Scripts/AudioManager.cs b/Assets/Scripts/AudioManager.cs
index 23042c1..016e04d 100644
--- a/Assets/Scripts/AudioManager.cs
+++ b/Assets/Scripts/AudioManager.cs
@@ -7,6 +7,9 @@ public class AudioManager : MonoBehaviour
public Sound[] sounds;
public static AudioManager instance;
+
+ public string Theme;
+
// Start is called before the first frame update
void Awake()
@@ -34,7 +37,7 @@ public class AudioManager : MonoBehaviour
void Start()
{
- Play("Splattack!");
+ Play(Theme);
}
public void Play(string name)
diff --git a/Assets/Scripts/Sound.cs b/Assets/Scripts/Sound.cs
index d7214a2..d4c7d76 100644
--- a/Assets/Scripts/Sound.cs
+++ b/Assets/Scripts/Sound.cs
@@ -14,7 +14,7 @@ public class Sound
public float pitch;
public bool loop;
-
+
[HideInInspector]
public AudioSource source;