fgm24/Assets/Scripts/Misc/IngameMusic.cs

21 lines
468 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IngameMusic : MonoBehaviour
{
float volume = 0.1f;
void Start()
{
AudioManager.PlaySound("Intro_Flatline", new Vector3(0f, 0f, 0f), false, false).volume = volume;
Invoke("PlayMusic", 3);
}
void PlayMusic()
{
AudioManager.PlaySound("Ingame_Theme", new Vector3(0f, 0f, 0f), false, false, true, false).volume = volume;
}
}