FiE-Game/src/FieAudioSourceAnimationEvent.cs

16 lines
222 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using UnityEngine;
public class FieAudioSourceAnimationEvent : MonoBehaviour
{
[SerializeField]
private AudioSource _audioSource;
public void Play()
{
if (_audioSource != null)
{
_audioSource.Play();
}
}
}