19 lines
406 B
C#
19 lines
406 B
C#
|
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);
|
||
|
}
|
||
|
}
|