idle-survivors/Assets/Scripts/Events/SpawnWaveSOEventChannelSO.cs

17 lines
405 B
C#
Raw Normal View History

2023-08-02 17:27:45 -04:00
using UnityEngine;
using UnityEngine.Events;
using Wave;
namespace Events
{
[CreateAssetMenu(menuName = "Events/Spawn Wave SO Event Channel")]
public class SpawnWaveSOEventChannelSO : ScriptableObject
{
public event UnityAction<SpawnWaveSO> OnEventRaised;
public void RaiseEvent(SpawnWaveSO spawnWave)
{
OnEventRaised?.Invoke(spawnWave);
}
}
}