using System; using Unity.BossRoom.Audio; using UnityEngine; namespace Unity.BossRoom.Gameplay.GameplayObjects.Audio { /// /// Simple class to play game theme on scene load /// public class MainMenuMusicStarter : MonoBehaviour { // set whether theme should restart if already playing [SerializeField] bool m_Restart; void Start() { ClientMusicPlayer.Instance.PlayThemeMusic(m_Restart); } } }