2023-08-10 17:24:42 -04:00
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.Events;
|
|
|
|
using Wave;
|
|
|
|
|
|
|
|
namespace Events
|
|
|
|
{
|
2023-08-12 23:26:36 -04:00
|
|
|
[CreateAssetMenu(menuName = "Events/Spawn Wave Event")]
|
|
|
|
public class SpawnWaveEventSO : ScriptableObject
|
2023-08-10 17:24:42 -04:00
|
|
|
{
|
|
|
|
public event UnityAction<SpawnWaveSO> OnEventRaised;
|
|
|
|
|
|
|
|
public void RaiseEvent(SpawnWaveSO spawnWave)
|
|
|
|
{
|
|
|
|
OnEventRaised?.Invoke(spawnWave);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|