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