diff options
Diffstat (limited to 'Assets/Scripts')
| -rw-r--r-- | Assets/Scripts/AudioManager.cs | 5 | ||||
| -rw-r--r-- | Assets/Scripts/Sound.cs | 2 |
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;
|
