15 lines
322 B
C#
15 lines
322 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class MusicStarter : MonoBehaviour
|
|
{
|
|
public string songName = "gameplay";
|
|
|
|
void Start()
|
|
{
|
|
GameObject.FindWithTag("MusicManager")
|
|
.GetComponent<MusicManager>()
|
|
.PlaySong(songName);
|
|
}
|
|
}
|