17 lines
366 B
C#
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);
|
|
}
|
|
}
|