23 lines
614 B
C#
23 lines
614 B
C#
using UnityEngine;
|
|
|
|
public class BackgroundMusicManager : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
var backgroundMusicAudioSource = GetComponent<AudioSource>();
|
|
|
|
backgroundMusicAudioSource.Play();
|
|
|
|
Debug.Log("Audio playing: " + backgroundMusicAudioSource.isPlaying);
|
|
Debug.Log("Volume: " + backgroundMusicAudioSource.volume);
|
|
Debug.Log("Clip: " + backgroundMusicAudioSource.clip);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|