WinterJamSnowman/Assets/Scripts/LemonGenericLib/Audio/PlayAudioScript.cs

19 lines
406 B
C#
Raw Permalink Normal View History

2023-01-24 13:51:46 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//using Lemon.GenericLib.Audio;
public class PlayAudioScript : MonoBehaviour
{
[SerializeField] private string audioName = "";
public void PlayAudio() {
AudioManager2D.Instance.Play(audioName);
}
public void PlayAudio( string audioName)
{
AudioManager2D.Instance.Play(audioName);
}
}