FiE-Game/Assets/Scripts/FieAudioSourceAnimationEvent.cs

15 lines
222 B
C#

using UnityEngine;
public class FieAudioSourceAnimationEvent : MonoBehaviour
{
[SerializeField]
private AudioSource _audioSource;
public void Play()
{
if (_audioSource != null)
{
_audioSource.Play();
}
}
}