fgm24/Assets/Scripts/Misc/IngameMusic.cs

21 lines
468 B
C#
Raw Permalink Normal View History

2024-02-04 08:40:08 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IngameMusic : MonoBehaviour
{
2024-02-04 11:32:07 +01:00
float volume = 0.1f;
2024-02-04 11:13:51 +01:00
2024-02-04 08:40:08 +01:00
void Start()
{
2024-02-04 11:13:51 +01:00
AudioManager.PlaySound("Intro_Flatline", new Vector3(0f, 0f, 0f), false, false).volume = volume;
2024-02-04 08:40:08 +01:00
Invoke("PlayMusic", 3);
}
void PlayMusic()
{
2024-02-04 11:32:07 +01:00
AudioManager.PlaySound("Ingame_Theme", new Vector3(0f, 0f, 0f), false, false, true, false).volume = volume;
2024-02-04 08:40:08 +01:00
}
}