This repository has been archived on 2026-04-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GlobalGameJame/Assets/Scripts/MusicManager.cs
JonatanRek a77ee11e66 MM
2020-02-01 19:53:25 +01:00

22 lines
415 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MusicManager : MonoBehaviour
{
public AudioSource musicSource = new AudioSource();
public AudioClip Music;
// Start is called before the first frame update
void Start()
{
musicSource.PlayOneShot(Music);
}
// Update is called once per frame
void Update()
{
}
}