Michael
ad725ee518
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Some general refactors: Turns HeroPartySO into a runtime set class. Make runtime set an IEnumerable Simplify name of events Reviewed-on: #17 Reviewed-by: zephyr <zephyr@noreply.localhost> Co-authored-by: Michael <mep053@gmail.com> Co-committed-by: Michael <mep053@gmail.com>
17 lines
385 B
C#
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);
|
|
}
|
|
}
|
|
} |