From b6daed0af784f4e9bc13329dd87c671b06ee1c65 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 21 Apr 2020 14:37:09 -0400 Subject: added new audio --- Assets/Scripts/AudioManager.cs | 5 ++++- Assets/Scripts/Sound.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'Assets/Scripts') 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; -- cgit v1.2.3