15 lines
219 B
C#
15 lines
219 B
C#
using UnityEngine;
|
|
|
|
public class PlaySoundOnStart : MonoBehaviour
|
|
{
|
|
public string audioID;
|
|
|
|
private void Start()
|
|
{
|
|
if (!string.IsNullOrEmpty(audioID))
|
|
{
|
|
AudioController.Play(audioID, base.transform);
|
|
}
|
|
}
|
|
}
|