Aetheria/Assets/MainMenuMusic.cs
Reinier Vens d955c9da2f Music & SFX
2021-04-30 11:19:25 +01:00

14 lines
431 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MainMenuMusic : MonoBehaviour
{
public string MusicSoundbankName = "Main_Menu";
// Start is called before the first frame update
void Start()
{
AkSoundEngine.RegisterGameObj(gameObject);
ActionGameManager.PlayMusic(ActionGameManager.SoundBanksInfo.GetSoundBank(MusicSoundbankName).Id, gameObject);
}
}