Add a lot of stuff
This commit is contained in:
23
Assets/Scripts/BGMManager.cs
Normal file
23
Assets/Scripts/BGMManager.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam.Assets.Scripts
|
||||
{
|
||||
public class BGMManager : MonoBehaviour
|
||||
{
|
||||
public static BGMManager Instance { get; private set; }
|
||||
|
||||
[SerializeField]
|
||||
private AudioSource audioSource;
|
||||
|
||||
[SerializeField]
|
||||
private AudioClip[] backgroundMusic;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance == null)
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,7 @@ namespace Scampz.GameJam
|
||||
|
||||
private IEnumerator TypeSentence(string sentence)
|
||||
{
|
||||
|
||||
dialogueText.text = string.Empty;
|
||||
foreach (var letter in sentence.ToCharArray())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user