idle-survivors/Assets/Scripts/Events/SpawnWaveEventSO.cs
Michael 22995ac307
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
refactor: unify runtime sets, update naming of event channels
2023-08-10 18:14:51 -04:00

17 lines
385 B
C#

using UnityEngine;
using UnityEngine.Events;
using Wave;
namespace Events
{
[CreateAssetMenu(menuName = "Events/Spawn Wave Event")]
public class SpawnWaveEventSO : ScriptableObject
{
public event UnityAction<SpawnWaveSO> OnEventRaised;
public void RaiseEvent(SpawnWaveSO spawnWave)
{
OnEventRaised?.Invoke(spawnWave);
}
}
}