You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
499 B
C#
22 lines
499 B
C#
3 weeks ago
|
using System;
|
||
|
using Unity.BossRoom.Audio;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Unity.BossRoom.Gameplay.GameplayObjects.Audio
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Simple class to play game theme on scene load
|
||
|
/// </summary>
|
||
|
public class MainMenuMusicStarter : MonoBehaviour
|
||
|
{
|
||
|
// set whether theme should restart if already playing
|
||
|
[SerializeField]
|
||
|
bool m_Restart;
|
||
|
|
||
|
void Start()
|
||
|
{
|
||
|
ClientMusicPlayer.Instance.PlayThemeMusic(m_Restart);
|
||
|
}
|
||
|
}
|
||
|
}
|