13 lines
243 B
C#
13 lines
243 B
C#
using UnityEngine;
|
|
|
|
public class MusicPlayer : MonoBehaviour
|
|
{
|
|
private AudioSource audioSource;
|
|
|
|
void Start()
|
|
{
|
|
audioSource = GetComponent<AudioSource>();
|
|
audioSource.loop = true;
|
|
audioSource.Play();
|
|
}
|
|
} |