idle-survivors/Assets/Scripts/Events/SpawnWaveSOEventChannelSO.cs
Michael 505b292718
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Initial pass on wave spawning.
2023-08-02 17:27:45 -04:00

17 lines
405 B
C#

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);
}
}
}