2025-02-27 21:35:24 +08:00

17 lines
366 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(menuName ="Event/PlayAudioEventSO")]
public class PlayAudioEventSO : ScriptableObject
{
public UnityAction<AudioClip> OnEventRaised;
public void RaiseEvent(AudioClip audioclip)
{
OnEventRaised?.Invoke(audioclip);
}
}